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 ./contributing.md
.
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.1.tar.gz
(9.6 kB
view hashes)
Built Distribution
tempylate-0.1.1-py3-none-any.whl
(10.3 kB
view hashes)
Close
Hashes for tempylate-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd305cdccd763f1c9570f266b0edee46eb5bbc7c7ee52607876e0cb62fd0a4f7 |
|
MD5 | 0ba1aed19b0a62b6285c7b8fe7c80534 |
|
BLAKE2b-256 | 8f098913e5c72377d4563bb515b13c86d4d211eaf37440e3faf54cb05406d00d |