Closed stash closed 11 years ago
Doing
<script> var config = <%-: config | object %>; </script>
Will inline an object (JSON), but with <> escaped to \u003C and \u003E to prevent breaking out of the <script> context.
<>
\u003C
\u003E
<script>
("object" is just one name this could take... jsObj maybe? jsConst?)
jsObj
jsConst
Estimate 1/2 day
Doing
Will inline an object (JSON), but with
<>
escaped to\u003C
and\u003E
to prevent breaking out of the<script>
context.("object" is just one name this could take...
jsObj
maybe?jsConst
?)