Skip to content

Optional HTML container parsing for if-else-endif type code#53

Open
sanchit-mathew wants to merge 4 commits intothibaudcolas:mainfrom
sanchit-mathew:ifelse-optional-container
Open

Optional HTML container parsing for if-else-endif type code#53
sanchit-mathew wants to merge 4 commits intothibaudcolas:mainfrom
sanchit-mathew:ifelse-optional-container

Conversation

@sanchit-mathew
Copy link

@sanchit-mathew sanchit-mathew commented Feb 5, 2021

Handles the case:

{% if a %}
  <div>
{% else %}
  <div>
{% endif %}
foo
</div>

Solves partially the issue described in #14

Please let me know if any issues

@thibaudcolas thibaudcolas added this to the v0.14.0 milestone Apr 25, 2021
@jkevingutierrez
Copy link

It would be great to have this PR merged!

jgehrcke added a commit to conbench/conbench that referenced this pull request Apr 16, 2023
jgehrcke added a commit to conbench/conbench that referenced this pull request Apr 17, 2023
…nt errors (#1121)

* jinja2 templates: reformat with djlint


djlint . --extension=html.j2 --reformat conbench/templates/*html

no other action taken

* fix: one <table> too much

* fix: set active, not different div

this relates to
thibaudcolas/curlylint#53
thibaudcolas/curlylint#14

* fix: td element

* fix up compare-entity.html

* fix input tag (must not be closed)

* fix attribute quoting

* keep removing the unit tooltip contents

* fix setting 'active'

* fix: remove closing input

* fix: simplify msg

* fix: set 'active' in loop

* reformat again after fixes

* re-indent with djhtml -t 2 conbench/templates/*html

* reformat with

djlint . --extension=html.j2 --reformat --indent=2 conbench/templates/*html

* ci: add curlylint and djlint

* remove HTML comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants