Skip to content

Commit

Permalink
Update Macro sample view
Browse files Browse the repository at this point in the history
  • Loading branch information
Garðar Þorsteinsson authored and Garðar Þorsteinsson committed Jul 7, 2016
1 parent 8212b35 commit ac4ce0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Canvas/Canvas/views/Samples/Macro/MacroWrapper.cshtml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
@inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>

@{
string alias = (string)ViewData["alias"];
var parameters = (ViewDataDictionary)ViewData["parameters"];
string macro = (string)ViewData["macro"];
}

<div class="macro-wrapper">
@Umbraco.RenderMacro(alias, parameters)
@macro
</div>

0 comments on commit ac4ce0d

Please sign in to comment.