Hypertag (http://hypertag.io/ ) is a new language for document generation and 
HTML templating that has been released recently. Inspired by indentation-based 
template languages (Slim, Haml, Shpaml), it provides clean, readable syntax, 
and multiple original features: native custom tags, Python-like imports and 
control blocks, DOM manipulation, complex expressions, filter pipelines, Django 
integration, and more... Available on GitHub and PyPI:

- https://github.com/mwojnars/hypertag
- https://pypi.org/project/hypertag-lang/

EXAMPLE #1:

ul
    li | Cat
    li | Dog
    li | Rabbit & Guinea pig

The above Hypertag script is rendered to:

<ul>
    <li>Cat</li>
    <li>Dog</li>
    <li>Rabbit &amp; Guinea pig</li>
</ul>

EXAMPLE #2:

h1 | Table of Contents
div
    for k in [1,2,3]:
        a href='#heading-{k}' : b : i | Heading no. $k

This script contains a control block (for), chained tags (a, b, i) and an 
attribute (href). It is rendered to:

<h1>Table of Contents</h1>
<div>
    <a href="#heading-1"><b><i>Heading no. 1</i></b></a>
    <a href="#heading-2"><b><i>Heading no. 2</i></b></a>
    <a href="#heading-3"><b><i>Heading no. 3</i></b></a>
</div>

Hypertag can be called directly from Python code, or be plugged as a template 
backend into Django. Hypertag scripts can use all of Django’s filter functions.

Hypertag is a full-featured standalone language that is not limited to HTML 
alone and can be adapted to produce different markups. See the Quick Start 
(https://github.com/mwojnars/hypertag) and Language Reference 
(http://hypertag.io/) for details. 

Install from PyPI as "hypertag-lang".

Best regards,
Marcin Wojnarski 
(mwojnarski "at" paperity.org)


-- 
Marcin Wojnarski, Founder and CEO at Paperity, www.paperity.org
www.linkedin.com/in/marcinwojnarski
www.facebook.com/Paperity
https://twitter.com/Paperity

Paperity. Open science aggregated.

_______________________________________________
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com

Reply via email to