This code adds the ability to add Mako template lookup directories on
the fly, allowing third party add-ons to contribute their own Mako templates.
A new API function for registering Mako templates is introduced::
from edxmako import add_lookup
add_lookup('main', '/path/to/templates')
# Or, specify a package to lookup using pkg_resources. This will
# add the 'templates' directory inside the current package:
add_lookup('main', 'templates', package=__name__)
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| cache_toolbox | Loading commit data... | |
| config_models | Loading commit data... | |
| contentserver | Loading commit data... | |
| course_groups | Loading commit data... | |
| course_modes | Loading commit data... | |
| dark_lang | Loading commit data... | |
| datadog | Loading commit data... | |
| django_comment_common | Loading commit data... | |
| django_future | Loading commit data... | |
| edxmako | Loading commit data... | |
| external_auth | Loading commit data... | |
| heartbeat | Loading commit data... | |
| microsite_configuration | Loading commit data... | |
| monitoring | Loading commit data... | |
| pipeline_js | Loading commit data... | |
| pipeline_mako | Loading commit data... | |
| request_cache | Loading commit data... | |
| service_status | Loading commit data... | |
| session_inactivity_timeout | Loading commit data... | |
| static_replace | Loading commit data... | |
| status | Loading commit data... | |
| student | Loading commit data... | |
| terrain | Loading commit data... | |
| track | Loading commit data... | |
| util | Loading commit data... | |
| xmodule_modifiers.py | Loading commit data... |