Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work. Learn more →
Top 18 Python Template engine Projects
-
But, on the other hand, I can read in the jinja repository that there is not the same Switching From Other Template Engines and also exists documentation about Support for templates engines
-
MicroWebSrv
A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
setting up your own simple webserver
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
MicroWebSrv2
The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!
-
-
Mako
Mirror of Mako Templates for Python - gitthub main is now at https://github.com/sqlalchemy/mako (by zzzeek)
At least in Python, that's kinda what https://www.makotemplates.org is. Although if you're just using a subset of PHP suitable for templating, it's not really clear to me what benefit there is to PHP syntax versus, say, Jinja2 syntax.
-
Project mention: Ask HN: What is the best language/framework for getting things done on the web? | news.ycombinator.com | 2022-05-14
My own favorite syntax(es) are TAL, TALES, and METAL (Template Attribute Language, TAL Expression Syntax, and Macro Expansion TAL). There are many implementations in various languages. The OG implementation was in Python as part of the Zope:
https://pagetemplates.readthedocs.io/en/latest/tal.html
These days I reach for Chameleon, another Python implementation:
https://chameleon.readthedocs.io/
I'm aware of at least five implementations for JS: template-tal, jstal, Distal, DomTal, ZPT-JS.
-
jinja_partials
Simple reuse of partial HTML page templates in the Jinja template language for Python web frameworks. #pypackage
Recently saw Michael Kennedy's presentation at Python Web Conference where he talks about this. He also has a course on using Flask + HTMX. Even if you don't take the course, you do have access to the github repo for that course.
https://github.com/talkpython/htmx-python-course
He wrote a small library extending Jinja that does what you're referencing here, I believe. It's a little different than Jinja macros and include (you can reference the github issues for a discussion on that).
https://github.com/mikeckennedy/jinja_partials
Maybe that's what you're looking for?
-
Sonar
Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
-
Project mention: Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor | news.ycombinator.com | 2023-02-04
Templating yaml with a text templating language like Helm's templating language is a terrible idea. Templating objects and serializing them to Yaml (with input also being Yaml) I find quite nice: https://github.com/con2/emrichen
-
Project mention: Rux: A JSX-inspired way to render view components in Ruby | news.ycombinator.com | 2023-03-06
-
-
-
-
For Contributions and Issues visit the fastgen Github repo
-
-
discord-qalib
👾 Discord library built on discord.py to simplify source code by rendering templates of embeds and menus
The link to the repository is https://github.com/YousefEZ/discord-qalib and is on pypi https://pypi.org/project/discord-qalib/ Let us know if there should be other features, and feel free to contribute! There is also documentation on the wiki and GitHub pages, https://yousefez.github.io/discord-qalib/
-
Project mention: Tempren - template-based file renaming utility | reddit.com/r/commandline | 2022-09-30
For some time I have been looking for something more flexible than simple append/replace renamers and I ended up writing my own template-based batch file renaming utility - tempren.
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Python Template engine related posts
- Jinja and Django Jinja
- I love building a startup in Rust. I wouldn't pick it again
- Adding C-style for loops to Python for fun
- How to create a Template Engine?
- what is the best way to create automated CSS and JSON files?
- Where to read great code (comprehensible for beginner/intermediate)
- Linux client on Arch Linux does not work
-
A note from our sponsor - Sonar
www.sonarsource.com | 23 Mar 2023
Index
What are some of the best open-source Template engine projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | Jinja2 | 9,118 |
2 | MicroWebSrv | 547 |
3 | MicroWebSrv2 | 535 |
4 | MarkupSafe | 525 |
5 | Mako | 173 |
6 | Chameleon | 158 |
7 | jinja_partials | 115 |
8 | emrichen | 86 |
9 | pyxl4 | 73 |
10 | cinje | 29 |
11 | Template Render Engine | 18 |
12 | jinsi | 16 |
13 | fastgen | 16 |
14 | ix | 11 |
15 | discord-qalib | 10 |
16 | tempren | 8 |
17 | htmotor | 3 |
18 | yate | 1 |