Kendo Calendar month template - return name of class from outside function
<p>I'm using Kendo Calendar and I have to customize month template: <a href="http://demos.telerik.com/kendo-ui/calendar/template" rel="nofollow">Official Kendo Reference</a></p>

<p>The problem is when I want return name of class or custom style from external function. For example:</p>

<pre><code>$("#calendar").kendoCalendar({
                    month: {
                        // template for dates in month view
                        content: '&lt;div class="' + '#getClass(data)#' + '"&gt;#=data.value #&lt;/div&gt;'
                    },
                    footer: false
                });

function getClass(data) {
    //do some calculation
    return "class-name";
}
</code></pre>

<p>But when I use above code returning class isn't show on the template.</p>

<p>Is there any solution for solve this problem?</p>