Exemplo n.º 1
0
 /// <summary>
 /// Renders the macro with the specified alias.
 /// </summary>
 /// <param name="alias">The alias.</param>
 /// <returns></returns>
 public IHtmlString RenderMacro(string alias)
 {
     return(UmbracoComponentRenderer.RenderMacro(alias, new { }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Renders the macro with the specified alias, passing in the specified parameters.
 /// </summary>
 /// <param name="alias">The alias.</param>
 /// <param name="parameters">The parameters.</param>
 /// <returns></returns>
 public IHtmlString RenderMacro(string alias, IDictionary <string, object> parameters)
 {
     return(UmbracoComponentRenderer.RenderMacro(alias, parameters));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Renders the template for the specified pageId and an optional altTemplateId
 /// </summary>
 /// <param name="pageId"></param>
 /// <param name="altTemplateId">If not specified, will use the template assigned to the node</param>
 /// <returns></returns>
 public IHtmlString RenderTemplate(int pageId, int?altTemplateId = null)
 {
     return(UmbracoComponentRenderer.RenderTemplate(pageId, altTemplateId));
 }