Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kasper Gadensgaard 31 posts 52 karma points
    May 02, 2013 @ 17:48
    Kasper Gadensgaard
    0

    Render JS and CSS with razor

    Hi,

    Is it possible to use 

    RegisterJavaScriptFile
    RegisterStyleSheetFile
    RegisterClientScriptBlock

    of the umbraco.library namespace in MVC/Razor templates similar to how it works in Masterpages? Calling the methods is no problem, but how do i render the JS and CSS in my main layout?

    For now i am using the ClientDependencyFramework however here it is not possible to register inline scripts (RegisterClientScriptBlock).

    Any ideas?

    Thanks in advance

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies