We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29730
    • 3 Posts
    I’m attempting to use jQuery’s template plugin http://api.jquery.com/jQuery.template/ within a modx page. The jquery template syntax makes use of double curly braces and I cannot figure out how to prevent modx from processing them. For example, I need to emit something along the lines of:

    <script id="resultListingCategoryTemplate" type="text/x-jquery-tmpl">
    	{{each categories}}<span>...</span>{{/each}}
    </script>


    ...but I can’t seem to sneak it by the modx processor and the double braced portions get swallowed up. I’ve seen suggestions to separate the braces with spaces but that doesn’t work for my purposes. Please help!

    The site in question is running modx 0.9.6.3.