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.2.tar.gz
(9.7 kB
view hashes)
Built Distribution
tempylate-0.1.2-py3-none-any.whl
(10.4 kB
view hashes)
Close
Hashes for tempylate-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62fd9025c9e05fc09bdbc71c70994b9dbb324165e0ca719936b780a4d15846e6 |
|
MD5 | 154937c7dd3720b4605fbea565f814e0 |
|
BLAKE2b-256 | ab4dc7debf52f1eba98f3c8b188c4e35b31d83aa2e98dbfda38171bd54f61734 |