microtemplates.py -


未知
跨平台
Python

软件简介

microtemplates.py 是一个做着玩的 Python 模板引擎。

示例模板:

{% each items %}
    <div>{{it}}</div>
{% end %}

{% each [1,2,3] %}
    <div>{{it}}</div>
{% end %}

性能测试:

microtemplates => run 1000 times, took 0.58 ms
django => run 1000 times, took 1.39 ms
jinja2 => run 1000 times, took 7.68 ms