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 |
|---|---|---|
| .. | ||
| 6002exportusers.py | Loading commit data... | |
| 6002importusers.py | Loading commit data... | |
| __init__.py | Loading commit data... | |
| add_to_group.py | Loading commit data... | |
| anonymized_id_mapping.py | Loading commit data... | |
| assigngroups.py | Loading commit data... | |
| cert_restriction.py | Loading commit data... | |
| create_random_users.py | Loading commit data... | |
| create_user.py | Loading commit data... | |
| emaillist.py | Loading commit data... | |
| get_grades.py | Loading commit data... | |
| massemail.py | Loading commit data... | |
| massemailtxt.py | Loading commit data... | |
| set_staff.py | Loading commit data... | |
| sync_user_info.py | Loading commit data... | |
| transfer_students.py | Loading commit data... | |
| userinfo.py | Loading commit data... |