添加B64encode和B64decode过滤器的小Jinja2扩展。
jinja2-base64-filters的Python项目详细描述
Jinja2_Base64_过滤器图片::https://img.shields.io/pypi/v/jinja2_base64_filters.svg
:目标:https://pypi.python.org/pypi/jinja2_base64_filters
:alt:最新的pypi版本
代码块::python
from jinja2_base64_filters导入jinja2_base64_filters
from jinja2 import environment
env=environment(extensions=[“jinja2_base64_filters.base64filters”])
“my_string”->;“bxlfc3ryaw5n”
env.from_string({{teststring b64encode}}{{{teststring{b64encode}}})“.render(teststring=”我的字符串“
bxlfc3ryaw5n”->;“my_string”
env.from_string({{teststring{teststring{b64decode}}})“.render(teststring=”bxlfc3ryaw5n“
安装
>**Jinja2_Base64_过滤器**可从以下网站下载`通过‘pip ``的pypi ``通过‘pip ` ` ` ` ` ` ` ` ` pip ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `u base64_filters由timothée编写germain<;timothee@lumapps.com>;` `.
_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` kragniz/cookiecutter pypackage minimal`:https://github.com/kragniz/cookiecutter pypackage minimal.git
:目标:https://pypi.python.org/pypi/jinja2_base64_filters
:alt:最新的pypi版本
代码块::python
from jinja2_base64_filters导入jinja2_base64_filters
from jinja2 import environment
env=environment(extensions=[“jinja2_base64_filters.base64filters”])
“my_string”->;“bxlfc3ryaw5n”
env.from_string({{teststring b64encode}}{{{teststring{b64encode}}})“.render(teststring=”我的字符串“
bxlfc3ryaw5n”->;“my_string”
env.from_string({{teststring{teststring{b64decode}}})“.render(teststring=”bxlfc3ryaw5n“
安装
>**Jinja2_Base64_过滤器**可从以下网站下载`通过‘pip ``的pypi ``通过‘pip ` ` ` ` ` ` ` ` ` pip ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `u base64_filters由timothée编写germain<;timothee@lumapps.com>;` `.
_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` kragniz/cookiecutter pypackage minimal`:https://github.com/kragniz/cookiecutter pypackage minimal.git