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 |
|---|---|---|
| .. | ||
| Loading commit data... | ||
| emails | Loading commit data... | |
| __init__.py | Loading commit data... | |
| factories.py | Loading commit data... | |
| test_authz.py | Loading commit data... | |
| test_auto_auth.py | Loading commit data... | |
| test_bulk_email_settings.py | Loading commit data... | |
| test_email.py | Loading commit data... | |
| test_login.py | Loading commit data... | |
| test_massemail.py | Loading commit data... | |
| test_massemail_users.txt | Loading commit data... | |
| test_password_policy.py | Loading commit data... | |
| test_roles.py | Loading commit data... | |
| test_token_generator.py | Loading commit data... | |
| test_userstanding.py | Loading commit data... | |
| tests.py | Loading commit data... |