-
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.
support prettier range ignore via jinja comments (fixes #34)
- Loading branch information
1 parent
5314c0b
commit b6b45fc
Showing
4 changed files
with
80 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<html> | ||
<script> | ||
{ | ||
{ | ||
js; | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
/* {{ css }} */ | ||
</style> | ||
|
||
{# prettier-ignore-start #} | ||
<ul> | ||
{%for item in seq%} | ||
<li> | ||
{{item}} | ||
</li> | ||
{%endfor%} | ||
</ul> | ||
{# prettier-ignore-end #} | ||
|
||
<!-- prettier-ignore --> | ||
<div class="{{class}}" >hello world</div > | ||
<div class="{{ class }}">hello world</div> | ||
|
||
{% if foo %} | ||
<p> | ||
<!-- prettier-ignore --> | ||
{{item}} | ||
</p> | ||
{% endif %} | ||
</html> |
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,30 @@ | ||
<html> | ||
<script> | ||
{{js}} | ||
</script> | ||
|
||
<style> | ||
/* {{ css }} */ | ||
</style> | ||
|
||
{# prettier-ignore-start #} | ||
<ul> | ||
{%for item in seq%} | ||
<li> | ||
{{item}} | ||
</li> | ||
{%endfor%} | ||
</ul> | ||
{# prettier-ignore-end #} | ||
|
||
<!-- prettier-ignore --> | ||
<div class="{{class}}" >hello world</div > | ||
<div class="{{class}}" >hello world</div > | ||
|
||
{%if foo%} | ||
<p> | ||
<!-- prettier-ignore --> | ||
{{item}} | ||
</p> | ||
{%endif%} | ||
</html> |