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 ↩︎
You must log in or register to comment.