✈️ HTML Template engine for python!
Project description
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
htmotor-1.0.0.tar.gz
(4.2 kB
view details)
File details
Details for the file htmotor-1.0.0.tar.gz
.
File metadata
- Download URL: htmotor-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b295fc28ffee6614048f98ad42ec99e389e3502e70cbc21e207d4e3cd564f17a |
|
MD5 | e7019b40caea84a84b13a44404f84475 |
|
BLAKE2b-256 | c63cb5f5f93545a8089d6c3b17f74ceddd2cecef69616d2f62a0cb91f278715e |