Skip to content

v0.10.0

Compare
Choose a tag to compare
@cofin cofin released this 08 Dec 01:09
· 21 commits to main since this release

This is a breaking change.

This change removes the customized template config and prefers to patch the built in one.

Instead of:

vite = VitePlugin(config=ViteConfig(template_dir='templates/'))
app = Litestar(plugins=[vite], route_handlers=[WebController])

use:

template_config = TemplateConfig(engine=JinjaTemplateEngine(directory='templates/'))
vite = VitePlugin(config=ViteConfig())
app = Litestar(plugins=[vite], template_config=template_config, route_handlers=[WebController])

What's Changed

  • feat(templates)!: remove custom JinjaTemplateEngine by @cofin in #58

Full Changelog: v0.9.0...v0.10.0