This release is a pre-release and may not be stable for production use.
Tayra is a full-featured abstract markup language to template web documents. It is primarily inspired from mako-templates and HAML (especially the indentation based markup definitions). Only templating language that allow developers to build and distribute their templates as plugins, not to mention the fact that tayra’s implementation itself is heavily based on plugins.
Example,
@doctype html
<html>
<head>
<style text/css>
.italics { font-style : italics; }
<body>
<div>
<p> <span .italics> hello world
<p> counting to hundred, ${[ x for x in range(1, 100) ]}
Features
concise and neat syntax.
based on pluggdapps component system.
leverages on pluggdapps’ configuration system.
full programmability available via,
expression substitution with optional escape encoding.
control-blocks like if-elif-else.
looping contructs like for / while.
python statements.
template abstraction using function blocks, with its own local scope.
import other template scripts into the local namespace and access their functions
template inheritance for re-usable web-layouts.
extensible filter blocks.
expression substitution can be extended by plugins to interpret different types of expression.
unique ability to create template plugins, distribute them as separate package.
easy to debug. when used with pluggdapps’ CatchAndDebug plugin, exception tracebacks are tweaked to directly point to faulting line in the template.
pluggable tag handlers for custom tag elements.
compiles down to optimal python code and optionally memcached. Also possible to persist the intermediate python code to avoid re-compilation in case of server restart.
works with python 3.x.
has full unicode support.
lexer for generating syntax-highlighted web documents using Pygments.
vim-plugin for template scripts.
License: GPLv3 license.
Requires: Linux, Python-3.x, Pluggdapps, PLY.
If beautify_html settings is enabled for tayra.ttlcompiler plugin, the beautifulsoup4 needs to be installed.
Status: Core design stable. Not expected to change.
Metadata
Release files for tayra 0.45dev
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tayra-0.45dev.tar.gz | 92.0 kB | Without provenance | Details |
Release files / tayra-0.45dev.tar.gz
| Download URL | tayra-0.45dev.tar.gz |
|---|---|
| Size | 92.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d77e5654f0ce4d8fbe7b05bfd24b77492a367c8ec3516f1a13e77fe1aab3d2c9
|
|
BLAKE2b-256 checksum How to use checksums |
6569b7ea02bcaaeafe586f2b099ab12de4cbf9c0f9d032a3352ac47f064b6b32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tayra 0.45dev
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.