mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Improve detection of template v1-style syntax in CSS/JS contexts
This commit is contained in:
parent
04a7734b2e
commit
3e052d2d00
3 changed files with 12 additions and 12 deletions
|
|
@ -8,17 +8,16 @@ Hello <"world"> ('string') variable.jpg </span>
|
|||
</p>
|
||||
|
||||
<script type="text/javascript">
|
||||
function() {
|
||||
const str = "Hello \u003C\u0022world\u0022\u003E ('string') variable.jpg";
|
||||
const tpl = `template literal with ${var} inside`;
|
||||
const fun = function() {
|
||||
const foo = 'Hello \u003C\u0022world\u0022\u003E (\u0027string\u0027) variable.jpg';
|
||||
const bar = 'Hello <"world"> ('string') variable.jpg';
|
||||
const json = "Hello \u003C\u0022world\u0022\u003E ('string') variable.jpg";
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
background-image: url('Hello <"world"> ('string') variable.jpg');
|
||||
}
|
||||
body{background-image: url('Hello <"world"> ('string') variable.jpg')}
|
||||
</style>
|
||||
|
||||
<ul class="test">
|
||||
|
|
|
|||
|
|
@ -11,17 +11,16 @@
|
|||
</p>
|
||||
|
||||
<script type="text/javascript">
|
||||
function() {
|
||||
const str = @json($var);
|
||||
const tpl = `template literal with ${var} inside`;
|
||||
const fun = function() {
|
||||
const foo = '{{ $var }}';
|
||||
const bar = '{{ $var|noescape }}';
|
||||
const json = @json($var);
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
body {
|
||||
background-image: url('{{ $var }}');
|
||||
}
|
||||
body{background-image: url('{{ $var }}')}
|
||||
</style>
|
||||
|
||||
<ul class="test">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue