Changes between Version 5 and Version 6 of WebTemplateProposal
- Timestamp:
- Jan 15, 2012, 11:11:53 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebTemplateProposal
v5 v6 17 17 Problems to avoid: 18 18 * find out how to tell the smarty compiler what language is currently used so cached files are useable (use [http://www.smarty.net/docs/en/caching.multiple.caches caching multiple caches] feature) 19 * allow project specific template enhancements or replacement without tampering the standard templates 19 * allow project specific template enhancements or replacement without tampering the standard templates (can be done by specifying two template directories) 20 20 * HTML is used widely in .php and .inc files and is echo'ed by a lot of functions directly, this must be changed so that functions in /inc return a string to the calling script or function 21 21 * As this is a lengthy task and development and bug fixing goes on with the normal source code it will get difficult to merge changes with already transformed code … … 26 26 * Ouptut of lists must be assigned to arrays that can then be iterated by Smarty within the template (Sample follows) 27 27 28 TODOlist:28 DONE list: 29 29 * write a tra block plugin to translate template text directly using the pre-compiled php files in /languages/compiled/ (no need to use gettext as we do not use it anywhere else at the moment) 30 30 * transform sample_index.php into a smarty_index.php and index.tpl (possibly also header.tpl and footer.tpl) as a proof-of-concept 31 32 TODO list: 33 * finde a place to store project specific content (e.g.: project description, text about the group behing the project) 31 34 * document available Smarty functions/modifiers to be used in templates, best practice for using Smarty within PHP files 32 35 * find a suitable way to transform all other files … … 54 57 /configs/:: contains config files to alter smarty behaviour (should probably go into /project/project.inc if applicable) 55 58 /templates/:: contains .tpl files that specify the look of the individual pages, should be secured to prevent direct access 59 /project/templates/:: contains .tpl files that override the general templates, should be secured to prevent direct access 56 60 /templates_c/:: contains cached files of templates, should be secured to prevent direct access 57 61