-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add jinja tests and ignore jinja blocks spanning multiple lines
- Loading branch information
1 parent
81ceae9
commit 816e955
Showing
6 changed files
with
96 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<tr {% if targeted_fooo and not foo_bar_bar_bar == mykey %} class="collapse"{% endif %}></tr> | ||
|
||
<div | ||
{% if not line.fields|length_is:'1' %} | ||
class="field-box{% if field.field.name %} | ||
field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} | ||
errors{% endif %}{% if field.field.is_hidden %} | ||
hidden{% endif %}"{% elif field.is_checkbox %} | ||
class="checkbox-row" | ||
{% endif %} | ||
></div> | ||
|
||
<picture | ||
{% for key, val in attributes.items %} | ||
{{ key }}="{{ val }}" | ||
{% endfor %} | ||
></picture> | ||
|
||
<div | ||
{% if field.field.causes_red_card %}data-red-card{% | ||
elif field.field.causes_yellow_card | ||
%}data-yellow-card{% endif %} | ||
></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
source: markup_fmt/tests/fmt.rs | ||
--- | ||
<tr | ||
{% if targeted_fooo and not foo_bar_bar_bar == mykey %} | ||
class="collapse" | ||
{% endif %} | ||
> | ||
</tr> | ||
|
||
<div | ||
{% if not line.fields|length_is:'1' %} | ||
class=" | ||
field-box{% if field.field.name %} | ||
field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} | ||
errors{% endif %}{% if field.field.is_hidden %} | ||
hidden{% endif %} | ||
" | ||
{% elif field.is_checkbox %} | ||
class="checkbox-row" | ||
{% endif %} | ||
> | ||
</div> | ||
|
||
<picture | ||
{% for key, val in attributes.items %} | ||
{{ key }}="{{ val }}" | ||
{% endfor %} | ||
> | ||
</picture> | ||
|
||
<div | ||
{% if field.field.causes_red_card %} | ||
data-red-card | ||
{% elif field.field.causes_yellow_card %} | ||
data-yellow-card | ||
{% endif %} | ||
> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters