You surely are all aware of the T4MVC service, very helpful in avoid 'magic strings'.
Now, I would like to use it in a kendo template, but I found difficult to understand how parameters must be written.
Right now, I have this sample template:
<script id="agenda-event-template" type="text/x-kendo-template">
<div>
<a href='/Controller/Action?id=#: currentid#'>#: title #</a>
</div>
</script>
(where I stripped out non relevant code).
If I want to use T4MVC, I have to rewrite the previous code as in:
<script id="agenda-event-template" type="text/x-kendo-template">
<div>
<a href='@MVC.Controller.Action(??????)>#: title #</a>
</div>
</script>
But how can I pass the 'currentid' parameter in the action?
Thanks in advance...
Andrea
Now, I would like to use it in a kendo template, but I found difficult to understand how parameters must be written.
Right now, I have this sample template:
<script id="agenda-event-template" type="text/x-kendo-template">
<div>
<a href='/Controller/Action?id=#: currentid#'>#: title #</a>
</div>
</script>
(where I stripped out non relevant code).
If I want to use T4MVC, I have to rewrite the previous code as in:
<script id="agenda-event-template" type="text/x-kendo-template">
<div>
<a href='@MVC.Controller.Action(??????)>#: title #</a>
</div>
</script>
But how can I pass the 'currentid' parameter in the action?
Thanks in advance...
Andrea