litestar-templating
Installation
SKILL.md
Templating
Execution Workflow
- Choose the template engine that matches the project and ensure the corresponding Litestar extra is installed.
- Configure
template_configwith the rightTemplateConfigshape:directory,directory=[...], orinstance=.... - Return
Templateresponses with explicittemplate_nameortemplate_strand a stable, minimal context mapping. - Use built-in request, CSRF, and URL helpers for presentation concerns; keep domain logic out of templates.
- Register engine-wide callables or environment customization centrally through
engine_callback. - Verify missing-template behavior, route/static URL generation, CSRF rendering, and HTML output in tests.