Interface IMacroRenderer
Renders a macro
Namespace: Umbraco.Cms.Core.Macros
Assembly: Umbraco.Core.dll
Syntax
public interface IMacroRenderer
Methods
View SourceRenderAsync(String, IPublishedContent, Nullable<IDictionary<String, Object>>)
Declaration
Task<MacroContent> RenderAsync(string macroAlias, IPublishedContent content, IDictionary<string, object>? macroParams)
Parameters
Type | Name | Description |
---|---|---|
System.String | macroAlias | |
IPublishedContent | content | |
System.Nullable<IDictionary<System.String, System.Object>> | macroParams |
Returns
Type | Description |
---|---|
Task<MacroContent> |