To use your CoffeeScritps with Telerik ScriptRegistrar use the Coffee and DefaultCoffeeGroup Extension methods. Ex.:

<% Html.Telerik()
       .ScriptRegistrar()
       .Coffee(coffee =>
               coffee.Add("myCoffeeScript.coffee")); %>
You can mix CoffeeScripts and JavaScripts too:

<% Html.Telerik()
       .ScriptRegistrar()
       .Coffee(coffee =>
               coffee.Add("myCoffeeScript.coffee")
                     .Add("myJavaScript.js")); %>
And also you can add CoffeeScritps to the DefaultGroup:

<% Html.Telerik()
       .ScriptRegistrar()
       .DefaultCoffeeGroup(group =>
                           group.Add("myCoffeeScript.coffee")); %>

Last edited Jun 10, 2011 at 2:17 AM by luizbon, version 2

Comments

No comments yet.