Changes between Version 1 and Version 2 of TracDev/Proposals/Jinja/TracInterfaceCustomization
- Timestamp:
- Jun 18, 2017, 8:16:58 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/Proposals/Jinja/TracInterfaceCustomization
v1 v2 36 36 }}} 37 37 38 You should refer to the Jinja2 [http://jinja.pocoo.org/docs/dev/ documentation] and also to the syntactical conventions we use in Trac, for example by reading [trac:TracDev/PortingFromGenshiToJinja]. In addition, there are some Trac specific features, for example the `${href.chrome('site/style.css')}` attribute references `style.css` in the environment's `htdocs/` directory. In a similar fashion `${chrome.htdocs_location}` is used to specify the common `htdocs/` directory belonging to a Trac installation. That latter location can however be overridden using the [[TracIni#trac- section|[trac] htdocs_location]] configuration setting.38 You should refer to the Jinja2 [http://jinja.pocoo.org/docs/dev/ documentation] and also to the syntactical conventions we use in Trac, for example by reading [trac:TracDev/PortingFromGenshiToJinja]. In addition, there are some Trac specific features, for example the `${href.chrome('site/style.css')}` attribute references `style.css` in the environment's `htdocs/` directory. In a similar fashion `${chrome.htdocs_location}` is used to specify the common `htdocs/` directory belonging to a Trac installation. That latter location can however be overridden using the [[TracIni#trac-htdocs_location-option|[trac] htdocs_location]] configuration setting. 39 39 40 40 … … 63 63 Example snippets for `style.css` can be found at [trac:wiki:CookBook/SiteStyleCss CookBook/SiteStyleCss]. 64 64 65 Also note that the `site_*.html` files, despite their name, can be put in a shared templates directory, see the [[TracIni#inherit- section|[inherit] templates_dir]] option.65 Also note that the `site_*.html` files, despite their name, can be put in a shared templates directory, see the [[TracIni#inherit-templates_dir-option|[inherit] templates_dir]] option.