Package trac :: Package web :: Module chrome :: Class ITemplateProvider

Class ITemplateProvider

source code

    object --+    
             |    
core.Interface --+
                 |
                ITemplateProvider

Extension point interface for components that provide their own Jinja2 templates and/or accompanying static resources.
Instance Methods
 
get_htdocs_dirs()
Return a list of directories with static resources (such as style sheets, images, etc.)
source code
 
get_templates_dirs()
Return a list of directories containing the provided template files.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

get_htdocs_dirs()

source code 

Return a list of directories with static resources (such as style sheets, images, etc.)

Each item in the list must be a (prefix, abspath) tuple. The prefix part defines the path in the URL that requests to these resources are prefixed with.

The abspath is the absolute path to the directory containing the resources on the local file system.