Changed: DB Params
This commit is contained in:
19
templ/generator/test-script-usage-nonce/expected.html
Normal file
19
templ/generator/test-script-usage-nonce/expected.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<script nonce="nonce1">
|
||||
function __templ_withParameters_1056(a, b, c){console.log(a, b, c);
|
||||
}function __templ_withoutParameters_6bbf(){alert("hello");
|
||||
}
|
||||
</script>
|
||||
<button onClick="__templ_withParameters_1056("test","A",123)" onMouseover="__templ_withoutParameters_6bbf()" type="button">A</button>
|
||||
<button onClick="__templ_withParameters_1056("test","B",123)" onMouseover="__templ_withoutParameters_6bbf()" type="button">B</button>
|
||||
<button onMouseover="console.log('mouseover')" type="button">Button C</button>
|
||||
<button hx-on::click="alert('clicked inline')" type="button">Button D</button>
|
||||
<script nonce="nonce1">
|
||||
function __templ_onClick_657d(){alert("clicked");
|
||||
}
|
||||
</script>
|
||||
<button hx-on::click="__templ_onClick_657d()" type="button">Button E</button>
|
||||
<script nonce="nonce1">
|
||||
function __templ_conditionalScript_de41(){alert("conditional");
|
||||
}
|
||||
</script>
|
||||
<input type="button" value="Click me" onclick="__templ_conditionalScript_de41()" />
|
Reference in New Issue
Block a user