Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Jul 04, 2011 @ 02:59
    Tom
    0

    Extension Methods With Razor Macros Tutorials?

    Hi Guys,

    just wondering if there were any good articles out there for getting started with razor/umbraco for writing the equivalent of extension methods in xslt.. i.e. in some razor macro saying something like

     

    .FetchABunchOfRandomStuff(@Model.ID) 

     

    how would i go about creating that method?

     

    Cheers,

    Tom

  • Alex 78 posts 136 karma points
    Jul 04, 2011 @ 09:46
    Alex
    0

    At the bottom of this blog post there is a bit about Global Helpers which may be of interest to you.

    http://joeriks.wordpress.com/2011/03/11/better-structure-for-your-razor-scripts-with-renderpage-in-umbraco/

Please Sign in or register to post replies

Write your reply to:

Draft