Threaded View
-
9 May 2012 9:30 PM #1
Problem with Ext.XTemplate escaping javascript functions
Problem with Ext.XTemplate escaping javascript functions
I have a xtpl config that needs to include some custom javascript, so I'm doing something like this:
the template loads like thisCode:tpl: { '<tpl>my template stuff <script>function test() { // some javascript }</script></tpl>' }
even escaping the { like this \{ it doesn't work, does anyone has a clue how to escape { inside XTemplate?Code:my template stuff <script>function test()
thanks!


Reply With Quote