Yup, so what it comes down to: you don't need uSitebuilder for this, just create .cshtml files and define your Razor macro's in your template like this:
Because it is now pointing directly to the file, Umbraco doesn't need a full macro definition. You can even have attributes in this definition to enable caching, etc, everything you can normally do in a macro definition.
uSiteBuilder and Razor
Hi all,
Please let me know if I am posting in the wrong area of this one.
I was just wondering if anyone knew if the uSiteBuilder package is likely to be update to include adding macros that point at Razor files.
Currently you only seem to be able to add .NET controls as macros.
Thanks a lot,
Steve
Check out Sebastiaan's article, he talks about using razor macros near the end:
http://cultiv.nl/blog/2011/5/9/umbraco-developer-productivity-with-usitebuilder/
Yup, so what it comes down to: you don't need uSitebuilder for this, just create .cshtml files and define your Razor macro's in your template like this:
Because it is now pointing directly to the file, Umbraco doesn't need a full macro definition. You can even have attributes in this definition to enable caching, etc, everything you can normally do in a macro definition.
Only just remembered about this, I'd hacked the uSiteBuilder build to allow me to do what I wanted but this makes more sense.
is working on a reply...