django-template-helpers提供了模板标签,以添加Django模板语言中缺失的功能。
项目描述
django-template-helpers提供了模板标签,以添加Django模板语言中缺失的功能。
功能
模板标签以设置新的上下文变量set
模板过滤器以将字符串拆分为列表split
上下文处理器以将选定的设置公开给模板
静态页面的GenericTemplateView
要求
django-template-helpers仅支持Python 3,且至少需要Django 1.11。
准备开发
需要Python 3.6解释器和pipenv。
$ pipenv install --python 3.6 --dev
$ pipenv shell
$ pip install -e .
现在您可以运行测试了
$ pipenv run py.test
资源
项目详情
关闭
django-template-helpers-0.2.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | ee05354ce7657ec3c0f1e594e568c69fde4533249a43f4687defd7bf12761883 |
|
MD5 | 9336ca5ed2df989a1f223370b5e485b8 |
|
BLAKE2b-256 | a9af50792928f29ef6ea7cd292cec5976d7cb972e079123db733a18c98af347d |
关闭
django_template_helpers-0.2.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 24ae001cc9cdbfcb2a4a1a5634dc92d607a79342b20877642e1b53b03792ff4a |
|
MD5 | f43e7e1a5fcce6abcd21966f5447c8bf |
|
BLAKE2b-256 | ea0d43671564bd1e9bfcb0b386b1c3831de71b093ca4dc2123dc03f593f7fde5 |