Files
bmaehrandGitHub 5d774dc667 Fix mustache quotes inside attribute (#10419) (#11524)
* Fix mustache quotes inside attribute (#10419)

* Add changelog (#10419)

* Update changelog (#10419)

* Updated tests

* Updated tests

* Opimize performance

* Don't format changlog

* Remove additional example
2021-09-28 06:02:59 +09:00

18 lines
746 B
Handlebars

<div title='My title'></div>
<div title="My title"></div>
<div title='My "title"'></div>
<div title="My other 'title'"></div>
<div title="{{t 'my.title'}}" />
<div title='{{t "my.title"}}' />
<a href="/{{url}}/{{url}}"></a>
<a href='/{{url}}/{{url}}'></a>
<button class="padding width-{{locales.length}} {{if (has locale) "uk-button-primary"}}"></button>
<button class="padding width-{{locales.length}} {{if (has locale) 'uk-button-primary'}}"></button>
<button class='padding width-{{locales.length}} {{if (has locale) "uk-button-primary"}}'></button>
<button class='padding width-{{locales.length}} {{if (has locale) 'uk-button-primary'}}'></button>
<div class="padding {{if foo (if fooAgain "bar" (if fooAgainAgain "bar" "foo"))}} baz" />