Changes between Version 3 and Version 4 of DeveloperGuidelines/Templates
- Timestamp:
- 06/18/12 17:05:07 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified DeveloperGuidelines/Templates
v3 v4 32 32 By default these files are used: 33 33 * /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) 34 in non-Debug mode: 35 * /private/templates/default/views/style.html 36 * /static/styles/default/sahana.min.css 37 in Debug mode: 38 * /private/templates/default/style.cfg 39 * /static/styles/default/layout.css 40 * /static/styles/S3/sahana.css 36 41 37 42 Optionally 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: 38 43 * /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 44 in non-Debug mode: 45 * /private/templates/<theme>/views/style.html 46 * static/styles/<theme>/sahana.min.css 47 in 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) 42 52 43 53 By convention, suporting files specific to this theme should be placed in: 44 * static/styles/<t emplate>/*.css45 * static/img/<t emplate>/*.png54 * static/styles/<theme>/*.css 55 * static/img/<theme>/*.png 46 56 47 57 NB 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 48 59 === !ToDo === 49 60 * controllers/default.py index() 61 * Make a controller which can create arbitrary pages based on args &/or vars 50 62 * modules/eden/layouts.py & modules/eden/menus.py 51 63 52 64 == References == 53 65 * BluePrint/Templates 54 * Pre populate66 * PrePopulate 55 67 * BluePrint/WebSetup 56 68 * [https://groups.google.com/d/topic/sahana-eden/Vy8xT4bA_pA/discussion Profile Layer]