Quantcast
Viewing all articles
Browse latest Browse all 3491

What is ?

Sometimes I see the use of

    <script type="text/mustache" id="{{someName}}">
         the Mustache template code is here
    </script>

I wonder what the {{ and }} are for?  Is it just part of the name, so that we can just use someName without the {{ and }}?

so the {{someName}} will work well with the following?

can.Control({
        defaults: {
            // ...
            template: '{{someName}}',
            // ...
        }, ...
})

just that if we ever do a $("#{{someName}}") then it won't work, so is the use of {{someName}} recommended?



Viewing all articles
Browse latest Browse all 3491

Trending Articles