klen / muffin-jinja2

Jinja2 templates for Muffin framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Muffin-Jinja2

Muffin-Jinja2 -- Support Jinja2 templates for Muffin Framework

Tests Status

PYPI Version

Requirements

  • python >= 3.8

Installation

Muffin-Jinja2 should be installed using pip: :

pip install muffin-jinja2

Usage

Options

Name Default value Description
auto_reload False Auto reload changed templates
cache_size 50 Cache templates
extensions None Enable Jinja2 Extensions (None | list)
loader FileSystemLoader Template loader
encoding utf-8 Default encoding for file loader
template_folders ['templates'] List of template folders

You are able to provide the options when you are initiliazing the plugin:

Or setup it inside Muffin.Application config using the jinja2_ prefix for example:

Muffin.Application configuration options are case insensitive

Tunning

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/muffin-jinja2/issues

Contributing

Development of Muffin-Jinja2 happens at: https://github.com/klen/muffin-jinja2

Contributors

  • klen (Kirill Klenov)

License

Licensed under a MIT license.

About

Jinja2 templates for Muffin framework

License:MIT License


Languages

Language:Python 82.8%Language:Makefile 15.0%Language:HTML 2.2%