DEV Community

loading...

Htmotor - Template Engine for Python

5elenay
I'm 15 years old programmer from Turkey. I always wanted to learn new technologies!
・1 min read

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

Discussion (0)