0

multi page web site

Hi, .... first my complimet mojito is a great framework , excellent work !!!!

Can mojito manage a multi page site ?

I dont find any example about this use case. If it is possible how can I structure the applications ?

Thanks... again great work

by
4 Replies
  • Yes it can manage multi page site, in fact its really good at it. As of now i can not show you some code but here is a example multi page site built on mojito http://hacks.developer.yahoo.com/

    0
  • could you share only application.json and routers.json of hacks.developer.yahoo.com ?

    thanks

    E

    1
  • Here is example for you , feel free to read docs for detail.

    application.json
    [{
        "settings": ["master"],
        "yui": {
            "showConsoleInClient": false,
            "dependencyCalculations": "precomputed",
            "extraModules-": [],
            "config": {
                "debug": true,
                "logLevel": "error"
            }
        },
    
        "appPort": "8666",
        "specs": {
            "landingPage": {
                "type": "HTMLHackTrackrFrameMojit",
                "config": {
                    "deploy": true,
                    "login": false,
                    "title": "Landing Page",
                    "child": {
                        "type": "indexPageMojit",
                        "config": {
                            "children": {
                                "eventList": {
                                    "type": "eventTimelineMojit"
                                }
                            }
                        }
                    }
                }
            },
            "editHackPage": {
                "type": "HTMLHackTrackrFrameMojit",
                "config": {
                  .....
                  ....
    
    //// routes.json
    
    [{
        "settings": ["master"],
    
        "landingPage": {
            "verbs": ["get", "post"],
            "path": "/",
            "call": "landingPage.index"
        },
    
        "editHackPage": {
            "verbs": ["get"],
            "path": "/:eventName/:hackid/edit",
            "regex": {
                "hackid": "[0-9]+",
                "eventName": "[a-z0-9-]+"
            },
            "call": "editHackPage.index"
        }
        ...
        ....
        ...
    
    }]
    
    0
  • thanks :)

    0

Recent Posts

in Yahoo! Mojito