跳转到主要内容

django-template-helpers提供了模板标签,以添加Django模板语言中缺失的功能。

项目描述

Latest Version Coverage Status Documentation Status https://travis-ci.org/moccu/django-template-helpers.svg?branch=master

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 (5.1 kB 查看哈希值)

上传时间 源代码

构建分发版

django_template_helpers-0.2.0-py3-none-any.whl (5.0 kB 查看哈希值)

上传时间 Python 3

由以下支持