jquery-tmpl icon indicating copy to clipboard operation
jquery-tmpl copied to clipboard

missing ) in parenthetical

Open killmenot opened this issue 13 years ago • 1 comments

Hi,

Please consider the following code:

    <script id="template-ui-1" type="text/x-jquery-tmpl">
        {{tmpl({"text":"Select issue(s) to monitor"}) "#partial-template-ui"}}
    </script>
    <script id="template-ui-2" type="text/x-jquery-tmpl">
        {{tmpl({"text":"Select issue&#40;s&#41; to monitor"}) "#partial-template-ui"}}
    </script>
    <script id="partial-template-ui" type="text/x-jquery-tmpl">
        <div>${text}</div>
    </script>

<script text="text/javascript">
    $(document).ready(function(){

        //this throws 'missing ) in parenthetical'
        $("#template-ui-1").tmpl().appendTo("#content");
        //this works fine
        $("#template-ui-2").tmpl().appendTo("#content");  
    })
</script>

killmenot avatar Aug 03 '11 14:08 killmenot

Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.

rdworth avatar Oct 08 '11 06:10 rdworth