Hi,
Iāve discover haml and pug [1] ( both web template engine )
Itās totally Pytonic ! ( and make even more sense to use it with python rather than JS )
Iāve look, if it exist for Python, but so far, Iāve found only
The first, only convert pug
into another template
The second, didnāt pass the alpha version.
The third, require dependence, not maintained etcā¦ \
So I didnāt found a Python package that could do haml/pug to html directly, without too much dependenceā¦
For example:
From
html
head title Example for Python discuss
body
h1 Hello world
p This is a paragraph.
To
<html>
<head>
<title>Example for Python discuss</title>
</head>
<body>
<h1>Hello world</h1>
<p>This is a paragraph.</p>
</body>
</html>
Do you know if such thing exist ?
If not, I will build my own (FLOSS). ( Iām open to any advice to do so )
Thanks
Pug is a template engine heavily influenced by Haml and implemented with JavaScript for Node.js ā©ļø