Changes between Version 3 and Version 4 of DeveloperGuidelines/Templates


Ignore:
Timestamp:
06/18/12 17:05:07 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Templates

    v3 v4  
    3232By default these files are used:
    3333* /private/templates/default/views/layout.html
    34 * /private/templates/default/views/style.html (for non-Debug mode)
    35 * /private/templates/default/style.cfg (for Debug mode)
     34in non-Debug mode:
     35* /private/templates/default/views/style.html
     36* /static/styles/default/sahana.min.css
     37in Debug mode:
     38* /private/templates/default/style.cfg
     39* /static/styles/default/layout.css
     40* /static/styles/S3/sahana.css
    3641
    3742Optionally a template's config.py (or running 000_config.py) can specify a 'theme' folder (usually the same as the template folder), so that these are used instead:
    3843* /private/templates/<theme>/views/layout.html
    39 * /private/templates/<theme>/views/style.html (for non-Debug mode)
    40 * /private/templates/<theme>/style.cfg (for Debug mode)
    41 * static/styles/<template>/sahana.min.css
     44in non-Debug mode:
     45* /private/templates/<theme>/views/style.html
     46* static/styles/<theme>/sahana.min.css
     47in Debug mode:
     48* /private/templates/<theme>/style.cfg
     49* /static/styles/<theme>/layout.css
     50* /static/styles/S3/sahana.css (this file should generally not be changed by deployments)
     51* /static/styles/<theme>/style.css (for overrides to core CSS)
    4252
    4353By convention, suporting files specific to this theme should be placed in:
    44 * static/styles/<template>/*.css
    45 * static/img/<template>/*.png
     54* static/styles/<theme>/*.css
     55* static/img/<theme>/*.png
    4656
    4757NB Production sites who wish to compile their code either need to hardcode the theme name in their views/layout.html & views/style.html or upgrade to Web2Py version: 2.00.0 (2012-06-17 23:36:32) or newer
     58
    4859=== !ToDo ===
    4960* controllers/default.py index()
     61 * Make a controller which can create arbitrary pages based on args &/or vars
    5062* modules/eden/layouts.py & modules/eden/menus.py
    5163
    5264== References ==
    5365* BluePrint/Templates
    54 * Prepopulate
     66* PrePopulate
    5567* BluePrint/WebSetup
    5668* [https://groups.google.com/d/topic/sahana-eden/Vy8xT4bA_pA/discussion Profile Layer]