Skip to main content

PyPI PyPI - Python Version PyPI - Downloads PyPI - License Documentation Status Discord Buy Me a Coffee

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

Metadata

Release files for tempylate 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tempylate 0.1.3
File Size Uploaded
tempylate-0.1.3.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tempylate 0.1.3
File Interpreter ABI Platform
tempylate-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / tempylate-0.1.3.tar.gz

Download URL tempylate-0.1.3.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5ca8d7759e67fd8a57fa397f22a1bc8badfea0900976022ff444fd73e4ef45ad
BLAKE2b-256 checksum
How to use checksums
5c4d053b8683cd8f010e79f5a6943e40e092b0acf72d330b09ce0ec2abdf98d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / tempylate-0.1.3-py3-none-any.whl

Download URL tempylate-0.1.3-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c9443d568c6bea56b3e5e43f6a63d51120cc32f20289f10cb18a71a1fc196b2
BLAKE2b-256 checksum
How to use checksums
b43c02d1df4af71752427eef5509b5bf57e8ca1360a5309c50749fd31a16df6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page