Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : stealjs/canjs

$
0
0
Heres a good structure .... say we have a app with 2 'big' modules inside ... a file manager and a image editor


/root
      /app
            /editor
                  /views --> views specific to 'editor'
                  editor.js
                  editor.css
            /fm
                  /views --> views specific to 'fm'
                  fm.js
                  fm.css
            /views  --> views for app
            /models --> models for app
            app.js  --> deals with toggling 'editor' and 'fm' and authentication
            app.css
      /ui    --> generic widgets not specific to this app like modal
            /modal
                  modal.js
                  modal.css
            ...etc 
      /core --> things like localization , error handlers, not specific to this project
      /can 
      /steal
      index.html --> launcher
      stealconfig.js --> the config
      
            
:)


Follow me on Twitter @amcdnl

Viewing all articles
Browse latest Browse all 3491

Trending Articles