News for hackers. Stuff that matters.
Re:Go 1.8 Release Candidate 1 is released by chrisbroadfoot on Tuesday January 10, 2017 @08:23PM (#13370978)
Shouldn't you use a different "type"? What you're putting in there is not JavaScript, it's something else.

Use <script type="text/ejs">?

Re:Go 1.8 Release Candidate 1 is released by grey-area on Wednesday January 11, 2017 @01:26AM (#13372165)
But it does become javascript so it needs the right script type. A way to work around this might be to do this:

<script type="<%= js_mime %>"> <div><%= something %>

then it won't be escaped presumably as js, but it will become js when it is run through the other templating system. sentiental have you tried that approach?