thomasloven / hass-lovelace_gen

🔹 Improve the lovelace yaml parser for Home Assistant
MIT License
209 stars 22 forks source link

Allow [[ ... ]] and [% ... %] to be used instead of {{ ... }} and {% ... %} #54

Open michaelblight opened 8 months ago

michaelblight commented 8 months ago

I found it was a mess trying to intermingle lovelace-gen Jinja and Home Assistant Jinja. This allows you to specify an alternative so both can co-exist without having to use {% raw %}.

I also put in an FAQ about how to avoid some of the errors that occur in VS Code. There may be a better way, but making lovelace-gen code a "comment" seems to work easily enough.