Template engine for smart foxes, in python
Project description
Fuchs Templates
Fuchs Templates is a simple template engine for HTML/XML written in Python.
Fuchs is the successor of TEX (Template Engine X)
Inspiration
Fuchs was clearly influenced by template engines like Handlebars, Jinja and Genshi. And deliberately combines everything to ensure the best comfort with the highest quality.
Functional references
Fuchs takes its cue from PHP, it has a syntax that allows to execute Python code.
<!DOCTYPE html>
<html>
<?fuchs
# valid python code inside here
abc = "abc"
?>
<p>{{abc}}</p>
</html>
<!DOCTYPE html>
<html>
<?fuchs
# valid python code inside here
import random
abc = random.randint(1,10)
?>
<p>{{abc}}</p>
</html>
Why not Jinja?
For my web framework Wire, I really wanted something that came from myself. I mean, it's easy to add any dependency and be satisfied. But, I don't want that.
Note
Since Fuchs works exclusively on the server side, any security measures were removed when evaluating the code. Keywords like quit()
, exit()
etc. are therefore usable.
Please avoid using them.
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
Built Distribution
File details
Details for the file wire-fuchs-0.1.0.tar.gz
.
File metadata
- Download URL: wire-fuchs-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.10.84-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70088bf0631eb9c8638feba0e24564163a7a21dd3321f8205c1a581a57499047 |
|
MD5 | e81bbaa69fbe0e90db687eee5c05a230 |
|
BLAKE2b-256 | 7f1e9f632c6d482756a3027c85c63467dececda56bacf3f833830b30c2f23a62 |
File details
Details for the file wire_fuchs-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: wire_fuchs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.10.84-1-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48a4e3dfc73ad3a0646570ffff0da96e4de2cf0519d09d6d594df6c5daa6b3df |
|
MD5 | a034ef018600b90d42532160e329c1bc |
|
BLAKE2b-256 | f5ed2dee2348f234db6af83469e125fd0988854865d3c940a225e6aee5e6e75f |