pyctpp2Python interface to CTPP2 library | |
Download |
pyctpp2 Ranking & Summary
Advertisement
pyctpp2 Tags
pyctpp2 Description
Python interface to CTPP2 library pyctpp2 is a Python interface to the CTPP2 library.Example of usage: First you should make template, file hello.tmpl: Foo: < TMPL_var foo > < TMPL_if array > Here is loop body: < TMPL_loop array > Key: < TMPL_var key > < /TMPL_loop > < /TMPL_if > Now create Python script: #!/usr/bin/env python import pyctpp2 if __name__ == '__main__': engine = pyctpp2.Engine() template = engine.parse('hello.tmpl') result = template.render(foo='bar', array=) Now check output: Foo: bar Here is loop body: Key: first Key: second Requirements: · Python What's New in This Release: · Added COPYING.txt. · Added support of traversable objects. · Some bug fixes.
pyctpp2 Related Software