TranlationExchange.com API的Jinja2 TML扩展
tml-jinja2的Python项目详细描述
[![生成状态](https://travis-ci.org/translationexchange/tml-jinja2.png?branch=master)](https://travis-ci.org/translationexchange/tml-jinja2) [![覆盖状态](https://coveralls.io/repos/translationexchange/tml-jinja2/badge.png?branch=master)](https://coveralls.io/r/translationexchange/tml-jinja2?分支=主)
这个扩展的思想是将使用jinja2作为模板引擎的web框架与tml以简单和可扩展的方式集成在一起。
开始使用此扩展的最佳方法是在与此扩展捆绑在一起的瓶子上运行“玩具”演示。
###在运行示例应用程序之前 请确保您有一个翻译交换帐户,并且已在仪表板中创建了一个项目。
https://github.com/translationexchange/tml-jinja2
`bash $ git clone https://github.com/translationexchange/tml-jinja2.git $ cd tml-jinja2/demo $ virtualenv --no-site-packages tml_env $ . ./tml_env/bin/activate $ pip install -r requires.txt `
现在您可以通过运行以下命令启动应用程序:
`bash $ python app.py `
这将启动玩具演示端口8000。打开浏览器并指向:[http://localhost:8000](http://localhost:8000)