Project Description
Macro-less Umbraco with Razor. Match document types to Razor templates based on rules and purpose, e.g. "Main", "ListItem" and "MenuItem". A fluent API is used to configure the rules.

Download package from http://our.umbraco.org/projects/developer-tools/razor-rocks

Get what's missing from Xslt in Razor ( <xsl:template match="...">). Allows you to match .cshtml templates to document types in a flexible way using a fluent api.

You simply have to call the extension method Node.Render() on your DynamicNodes.

You can use MVC style master templates like @{Layout = "Master.cshtml"}, @RenderBody() and all that.

All document types use the Razor Dispatch template that calls macroScripts/Dispath.cshtml.

More documentation to come... Until then please refer to the demo project.

Last edited Apr 20, 2011 at 11:28 AM by nielskuhnel, version 3