A TiddlyWeb plugin with tools and packaging for templates.
Project description
TiddlyWeb tool establishing package based hosting of Jinja2 templates in the tiddlywebplugins package space.
The templates are overridable with local templates in the TiddlyWeb instance.
The tool provides a get_template method which takes a template name or path. First the tiddlyweb.config[‘plugin_local_templates’] directory (defaulting to ‘templates’) is searched. Then the tiddlywebplugins.templates package space is searched (looking for the template as a pkg_resource).
This searching may not work for all packaging systems. This has been tested with pip.
For more information on TiddlyWeb see http://tiddlyweb.com
This code is licensed under the same terms as TiddlyWeb itself.
Copyright 2009 Chris Dent.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for tiddlywebplugins.templates-0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ace11b754f40fbbb4aeea9bf6c5b173a640936f1ddda7f51b510a377100ea2a |
|
MD5 | 76cd14a0f8b08992a331298c15ac3129 |
|
BLAKE2b-256 | 31da33c1bc8a2130bd98b6db81d502d12f89b545e67cd567d7638748ac2b277a |