* Adds a loader to enable jinja imports. * Switch to in-memory * Move loading custom_jinja off of the event loop * Raise TemplateNotFound if template doesn't exist * Fix docstring * Adds a service to reload custom jinja * Remove IO from test setup * Improve coverage and small refactor * Incorporate feedback and use .jinja extension * Check the loaded sources in test. * Incorporate PR feedback. * Update homeassistant/helpers/template.py Co-authored-by: Erik Montnemery <erik@montnemery.com> --------- Co-authored-by: Erik Montnemery <erik@montnemery.com>
5 lines
No EOL
85 B
Django/Jinja
5 lines
No EOL
85 B
Django/Jinja
{% macro test_macro() -%}
|
|
macro
|
|
{%- endmacro %}
|
|
|
|
{% set test_variable = "variable" %} |