RazorCore contains all the core razor engine implementation RazorDynamicNode contains all the DynamicNode functionality and associated support files
21 lines
572 B
C#
21 lines
572 B
C#
using System;
|
|
using umbraco.cms.businesslogic.macro;
|
|
using umbraco.interfaces;
|
|
|
|
namespace umbraco.MacroEngines {
|
|
|
|
public abstract class DynamicNodeContext : BaseContext<DynamicNode> {
|
|
|
|
public override void SetMembers(MacroModel macro, INode node) {
|
|
if (macro == null)
|
|
throw new ArgumentNullException("macro");
|
|
if (node == null)
|
|
throw new ArgumentNullException("node");
|
|
CurrentModel = new DynamicNode(node);
|
|
base.SetMembers(macro, node);
|
|
}
|
|
|
|
}
|
|
|
|
}
|