zTemplate:Web模板渲染引擎

时间:2021-05-15 10:01:50
【文件属性】:
文件名称:zTemplate:Web模板渲染引擎
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-15 10:01:50
C 执照: 该项目已获得MIT许可,请查看LICENSE.md文件 生成状态: 描述: 用C语言编写的Web模板渲染库 用法: 公用变量插入: 您好,<< $ name >> 常见的包括: << include>> IF块: [[ if $some_variable ]] You may pass [[end]] Foreach块: [[ foreach $tree in $forest ]] << $tree >> [[end]] Python API: from zRender import * r = zRender() rendered_html = r.render("index.html", {"name": "Mr. Awesome", "company": "Awesome Inc."}) 版本历史: 0.2版
【文件预览】:
zTemplate-master
----tmpl()
--------test3.html(255B)
--------test2.html(24B)
--------test.html(121B)
----src()
--------precompiled()
--------Parameter.c(2KB)
--------zCore.c(3KB)
--------Parameter.h(776B)
--------zCore.h(297B)
--------Block.h(1001B)
--------Block.c(8KB)
--------Regex.h(802B)
--------Util.c(4KB)
--------Util.h(767B)
--------Regex.c(7KB)
----lib()
--------zTemplate.py(3KB)
--------__init__.py(2B)
----.travis.yml(120B)
----LICENSE.md(1KB)
----README.md(1KB)
----makefile(995B)
----tests()
--------test_tmpl2_result.html(70B)
--------tests.c(5KB)
--------tests.py(862B)
--------test_tmpl2.html(113B)
--------unicode_test_tmpl1_result.html(75B)
--------test_tmpl2_include1.html(17B)
--------test_tmpl1.html(84B)
--------unicode_test_tmpl1.html(72B)
--------test_tmpl4_result.html(43B)
--------test_tmpl4.html(85B)
--------test_tmpl3.html(96B)
--------test_tmpl2_include2.html(16B)
--------test_tmpl3_result.html(41B)
--------test_tmpl1_result.html(45B)
----.gitignore(35B)
----example.py(337B)

网友评论