| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| mock_cs_server | ||
| __init__.py | ||
| factories.py | ||
| test.mustache | ||
| test_middleware.py | ||
| test_models.py | ||
| test_mustache_helpers.py | ||
| test_utils.py | ||
| unicode.py |
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 |
|---|---|---|
| .. | ||
| mock_cs_server | Loading commit data... | |
| __init__.py | Loading commit data... | |
| factories.py | Loading commit data... | |
| test.mustache | Loading commit data... | |
| test_middleware.py | Loading commit data... | |
| test_models.py | Loading commit data... | |
| test_mustache_helpers.py | Loading commit data... | |
| test_utils.py | Loading commit data... | |
| unicode.py | Loading commit data... |