Little, lightweight and fast template engine.
Project description
tempylate
tempylate is a pythonic template engine that is little, lightweight and fast.
Features:
- Full python syntax. So there is absolutely nothing to remember in the syntax.
- It runs in Python.
- Little, lightweight and fast. (No dependency)
- Inheriting layouts through template inheritance.
- Easy to use!
Installation
You can install it using pip.
$ pip install tempylate
Examples
Title
<title>^^ title ^^</title>
Members
<body>
<h1>^^ team.name ^^ members</h1>
<ul>
^^
"".join(
f'<li><a href="{ member.url }">{ member.name }</a></li>'
for member in team.members
)
^^
</ul>
</body>
Inheritance
^^
self.manager.render_from_file(
"blog_page_layout.html", title="My sixteenth birthday.",
content="""
<strong>Today is my birthday!</strong><br>
So give me a gift.
"""
)
^^
Documentation
You can view the UserGuide and API reference of tempylate here.
Contributing
Please see here.
License
tempylate is available under the MIT license.
Detail: LICENSE
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
tempylate-0.1.3.tar.gz
(9.7 kB
view details)
Built Distribution
tempylate-0.1.3-py3-none-any.whl
(10.5 kB
view details)
File details
Details for the file tempylate-0.1.3.tar.gz
.
File metadata
- Download URL: tempylate-0.1.3.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ca8d7759e67fd8a57fa397f22a1bc8badfea0900976022ff444fd73e4ef45ad |
|
MD5 | 01a31674086599fa1ec2535262fe6906 |
|
BLAKE2b-256 | 5c4d053b8683cd8f010e79f5a6943e40e092b0acf72d330b09ce0ec2abdf98d2 |
File details
Details for the file tempylate-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: tempylate-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9443d568c6bea56b3e5e43f6a63d51120cc32f20289f10cb18a71a1fc196b2 |
|
MD5 | 3abd27e47969fa22a70ff98b4cae4799 |
|
BLAKE2b-256 | b43c02d1df4af71752427eef5509b5bf57e8ca1360a5309c50749fd31a16df6f |