DEV Community

5elenay
5elenay

Posted on

Htmotor - Template Engine for Python

Htmotor

HTML Template Engine for Python!

Installation:

Open your terminal and type pip install htmotor. Now you are ready to go!

Supports:

  • Variables
  • For Loop
  • Eval, Exec
  • XSS Preventation

Documentation:

Documentation is avaible at GitHub.

Bug? Issue?

If you got an error or bug, please report at here.

Simple Example

if you want to see htmotor syntax, here you go:

<!DOCTYPE html> <html lang="en"> <head> {% responsive %} <title>{%v title %}</title> </head> <body> <h1>{%v name %}</h1> {%ex import datetime %} <p>Datetime: {%ev datetime.datetime.utcnow().strftime("%d/%m/%Y, %H:%M:%S") %}</p> </body> </html> 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)