Sometimes for some specific controls/listings like TopMenu I dont really want to create a Macro. Instead I usually create usercontrols for these kinds of stuff.
So my question is bascially, is it possible to output a Razorscript directly from the masterpage/template without creating a macro? (Using it like a usercontrol)
I have tried, but I cant seem to get it working, or maybe I am missing some references.
Output Razor from template
Sometimes for some specific controls/listings like TopMenu I dont really want to create a Macro. Instead I usually create usercontrols for these kinds of stuff.
So my question is bascially, is it possible to output a Razorscript directly from the masterpage/template without creating a macro? (Using it like a usercontrol)
I have tried, but I cant seem to get it working, or maybe I am missing some references.
Hi, do you mean like this?
But macros are fine, aren't they?
Yeah, that is exactly what I was looking for..
I just thought it could be done without the umbraco macro control, but that might not be possible..
Thanks..
Comment author was deleted
@Fed http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/razor/inline-razor-script
You can just (as is shown in Tim's video) use the script without having to call a file:
is working on a reply...