Skip Navigation

PUG ( web template engine ) for Python ๐Ÿ

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

 pug
    
html
  head title Example for Python discuss
  body
    h1 Hello world
    p This is a paragraph.


  

To

 html
    
<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

[^1]:Pug is a template engine heavily influenced by Haml and implemented with JavaScript ๐Ÿคฎ for Node.js

0 comments

No comments