Mustache到javascript编译器。
项目描述
Mustache到javascript编译器
使用Python编写的Mustache到javascript编译器。它基于twitter hogan.js编译器 http://twitter.github.com/hogan.js/
Hogan.Template 仍然需要用于渲染。
安装
安装virtualenv
$ wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py $ python2.7 ./virtualenv.py --no-site-packages venv
从github克隆pyhogan然后安装
$ git clone git://github.com/fafhrd91/pyhogan.git $ cd pyhogan $ ../venv/bin/python setup.py develop
编译你的mustache模板
$ ../venv/bin/pyhogan template.mustache new Hogan.Template(function(c,p,i){...}
测试
测试需要Node.js
$ cd pyhogen/spec/ $ ../../venv/python ./mustache_spec.py
需求
Python 2.6及更高版本
Hogan.js 1.0.5
变更记录
0.2 (2012-02-09)
修复了setup.py
0.1 (2012-02-09)
首次发布
项目详情
关闭
pyhogan-0.2.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | dc5f6da78294443a7dfe51f4bdb2abfb26badb088ed923f70d7d13060d7263c7 |
|
MD5 | 9f31d2b66d1848372bbc94fd9aaab2a0 |
|
BLAKE2b-256 | 94754af7573e27014f4b33cfaf2b4ce64397f6e75f98f7ca3e405efbd5447742 |