Tempered

screenshot of Tempered

A Fast, Compiled, Native HTML templating

Overview:

Tempered is a beta tool that allows users to convert HTML templates into native python components. It offers increased performance compared to popular frameworks like Jinja and Django, with the ability to check compiled components using static analyzers. Tempered also provides support for scoped CSS and layouts inheritance.

Features:

  • Fast: Tempered is roughly 5x faster than Jinja and 50x faster than Django.
  • Scoped CSS: CSS is scoped per component, allowing for more organized and modular styling.
  • Components: Each template is its own component and can call other components, promoting reusability.
  • Layouts: Templates can inherit layouts, similar to Jinja2's implementation, for efficient and consistent design.
  • Type Checked: The compiled components can be checked by static analyzers like mypy, ensuring code quality and reducing errors.
  • IntelliSense: Components have IntelliSense support, aiding development with code suggestions and autocompletion.
  • Example: Tempered provides compiled examples to showcase its runtime compilation and loading capabilities.
  • View Benchmarks Here: Users can easily access benchmarks to see the performance improvement offered by Tempered.

Summary:

Tempered is a promising tool for converting HTML templates into native Python components. With its focus on performance, reusability, and code quality, it offers a significant improvement over traditional frameworks like Jinja and Django. The ability to check compiled components using static analyzers and enjoy IntelliSense support further enhances the development experience. Overall, Tempered provides an efficient and streamlined approach to building components in Python.