Codingrecipes/PML

语言: Python

git: https://github.com/Codingrecipes/PML

PML是一个用Python实现的高性能模板引擎,它支持许多高级功能,如模板......
PML is a high performance template engine implemented in Python, it supports many advanced features such as template …
README.md (中文)

我最终决定将PML作为开源软件发布。我为一个项目开发了这个模板引擎,遗憾的是从未使用过Python。 这是一个使用PML和Yahoo!的示例应用程序。搜索API: http://web-search.code-head.com/

Web搜索示例也包含在下载中。 PML被编写为快速,简单和紧凑。以下是它的一些功能:

1 - 模板过滤器 2 - 输出滤波器 3 - 扩展可变过滤器 4 - 模板缓存 - 默认 5 - 字节码缓存 - 默认 6 - 完成输出缓冲区缓存 7 - 垃圾收集 8 - 输出压缩 - GZIP 9 - 强大,快速的编译器 10 - 能够轻松添加助手 11 - 能够添加自定义编译器标签 12 - 自动转义变量,甚至是列表,dicts和元组 13 - 编辑模板一次,直到您编辑它们 和更多。

上面的Web搜索应用程序包含在您的下载中,它演示了这个功能强大的模板引擎的几乎所有方面。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

I finally decided to release PML as an open source software. I developed this template engine for a project that unfortunately never happened using Python.
Here is a sample application using PML and Yahoo! Search API:
http://web-search.code-head.com/

The web search example is also included in the download.
PML was written to be fast, simple and compact. Here are some of it�s features:

1 - Template filters
2 - Output filters
3 - emplate variable filters
4 - Template cache - default
5 - Bytecode cache - default
6 - Complete output buffer cache
7 - Garbage collection
8 - Output compression - GZIP
9 - A powerful, quick compiler
10 - Ability to add helpers easily
11 - Ability to add custom compiler tags
12 - Auto escaping your variables, even lists, dicts, and tuples
13 - Compile templates once until you edit them
And more.

The web search application above is included in your download and it demonstrates almost all the aspects of this powerful template engine.