| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| base | ||
| forum | ||
| management | ||
| migrations | ||
| tests | ||
| __init__.py | ||
| helpers.py | ||
| middleware.py | ||
| models.py | ||
| mustache_helpers.py | ||
| permissions.py | ||
| settings.py | ||
| tests.py | ||
| urls.py | ||
| utils.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 |
|---|---|---|
| .. | ||
| base | Loading commit data... | |
| forum | Loading commit data... | |
| management | Loading commit data... | |
| migrations | Loading commit data... | |
| tests | Loading commit data... | |
| __init__.py | Loading commit data... | |
| helpers.py | Loading commit data... | |
| middleware.py | Loading commit data... | |
| models.py | Loading commit data... | |
| mustache_helpers.py | Loading commit data... | |
| permissions.py | Loading commit data... | |
| settings.py | Loading commit data... | |
| tests.py | Loading commit data... | |
| urls.py | Loading commit data... | |
| utils.py | Loading commit data... |