I'd like to submit a PR with a few minor fixes for Tera syntax(https://tera.netlify.app/) which is based on J2. I'm not sure if I should do that in source.jinja or create a new set of rules for something like .tera.j2.
<option {% if langs | length==1 %}selected{% endif %}></option>
<option {% if langs | length < 3 %}selected{% endif %}></option>
<option value="+12" {% if availability_tz and availability_tz is ending_with('+12') %}selected{% endif %}>New Zealand, UTC+12</option>
@Keats, Vincent, you probably know if this syntax is valid in both or is Tera-specific. It may be worth mentioning this extension in Tera docs. It seems to work pretty well.
I'd like to submit a PR with a few minor fixes for Tera syntax(https://tera.netlify.app/) which is based on J2. I'm not sure if I should do that in
source.jinja
or create a new set of rules for something like.tera.j2
.<option {% if langs | length==1 %}selected{% endif %}></option>
<option {% if langs | length < 3 %}selected{% endif %}></option>
<option value="+12" {% if availability_tz and availability_tz is ending_with('+12') %}selected{% endif %}>New Zealand, UTC+12</option>
@Keats, Vincent, you probably know if this syntax is valid in both or is Tera-specific. It may be worth mentioning this extension in Tera docs. It seems to work pretty well.