Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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/
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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/
is working on a reply...