x First time here? Check out the FAQ

Learn from 350 other Umbracians at the annual Umbraco Conference - CodeGarden '13.
More than twenty high quality sessions, open spaces, hackathons and social events you'll remember. Not to be missed!
Less than 45 tickets left - get yours now!

  • Avatar1414posts2004karma

    what is razor?

    Fuji Kusaka started this topic March 3, 2011 @ 08:01 , this topic was edited at: Friday, October 21, 2011 12:26 PM, Go directly to the topic solution

    Ive just installed v4.7 and am hearing a lot about Razor.... But can anyone explain to me What is razor?

     

     

     


  • Replies

  • Jan Skovgaard posted this reply March 3, 2011 @ 09:36

    Hi Fuji

    Razor is a so called "View engine" for ASP.NET MVC...but as you probably have figured out it can work with ASP.NET web forms as well.

    I'm very much a Razor newbie myself but it provides a good alternative (and from what I've read and heard is sometimes even better in some situations than XSLT is) to XSLT. Many backend developers don't like XSLT and they will looove Razor I think :-)

    So basically it's another option you can use to fetch data and decide how it should be rendered and where it should be placed directly in your template, or even in macroes (If I remember correctly).

    You can read a bit more about Razor in general here: weblogs.asp.net/.../introducing-razor.aspx

    And more Umbraco specific here: www.cultiv.nl/.../how-to-use-razor-in-umbraco

    I hope this gives you an idea about what it is and the courage to explore it further :-)

    /Jan


  • David Johnson posted this reply October 21, 2011 @ 12:26

    Thanks for the links Jan. I found these very helpful.


Please login or Sign up To post replies