I have a xtpl config that needs to include some custom javascript, so I'm doing something like this:

Code:
tpl: {
'<tpl>my template stuff <script>function test() { // some javascript }</script></tpl>'
}
the template loads like this

Code:
my template stuff <script>function test()
even escaping the { like this \{ it doesn't work, does anyone has a clue how to escape { inside XTemplate?

thanks!