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 |
|---|---|---|
| .. | ||
| analytics | Loading commit data... | |
| branding | Loading commit data... | |
| bulk_email | Loading commit data... | |
| certificates | Loading commit data... | |
| circuit | Loading commit data... | |
| course_wiki | Loading commit data... | |
| courseware | Loading commit data... | |
| dashboard | Loading commit data... | |
| debug | Loading commit data... | |
| django_comment_client | Loading commit data... | |
| foldit | Loading commit data... | |
| instructor | Loading commit data... | |
| instructor_task | Loading commit data... | |
| licenses | Loading commit data... | |
| Loading commit data... | ||
| lms_migration | Loading commit data... | |
| multicourse | Loading commit data... | |
| notes | Loading commit data... | |
| notification_prefs | Loading commit data... | |
| open_ended_grading | Loading commit data... | |
| psychometrics | Loading commit data... | |
| shoppingcart | Loading commit data... | |
| static_template_view | Loading commit data... | |
| staticbook | Loading commit data... | |
| user_api | Loading commit data... | |
| verify_student | Loading commit data... |