Skip to main content

Genshi template compiler

Project description

Genshi Compiler allows for compiling simple Genshi XML templates to pure Python code. You can render the whole template or any of the template functions by importing generated code. The generated code is typically ~40x faster than rendering the same via Genshi. There is a cost of this speedup. Some of Genshi’s dynamic features are not available, most notably anything that depends on a template loader (xi:include, xi:fallback), the XML element tree representation (py:match) or the token stream (filters). Language translation (i18n) support is currently limited to simple text inside the translatable elements and attributes and the i18n:msg directive.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genshi-compiler-0.1.2.tar.gz (28.7 kB view details)

Uploaded Source

File details

Details for the file genshi-compiler-0.1.2.tar.gz.

File metadata

File hashes

Hashes for genshi-compiler-0.1.2.tar.gz
Algorithm Hash digest
SHA256 35a97ece75ab8dc0aa1e7298c4355500bffeb332dcded3134cd5e16e20262060
MD5 61966e77b7c157719a8ab9cd5e779121
BLAKE2b-256 7577b584a5e912bb968e2a7784372f69fc2f688c856ecbd00c3bc6f2396755a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page