Thursday, January 30, 2014

output in kendoui templates

Example:
    <script type="text/x-kendo-tmpl" id="some-template">
    <a href="#:data.href#">
        <h2>#= data.lbl  #</h2>
    </a>
    </script>

#= data.lbl  # -> this outputs data directly, without escaping of string data
#: data.lbl  # -> this outputs data transformed, performing escaping of string data

No comments:

Post a Comment