Edgewall Software

Changes between Version 1 and Version 2 of TracDev/Proposals/Jinja/TracInterfaceCustomization


Ignore:
Timestamp:
Jun 18, 2017, 8:16:58 PM (7 years ago)
Author:
Ryan J Ollos
Comment:

Use links directly to options.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/Proposals/Jinja/TracInterfaceCustomization

    v1 v2  
    3636}}}
    3737
    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.
     38You 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.
    3939
    4040
     
    6363Example snippets for `style.css` can be found at [trac:wiki:CookBook/SiteStyleCss CookBook/SiteStyleCss].
    6464
    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.
     65Also 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.