public ComponentData(NHamlMonoRailView view, string name, IDictionary<string, object> parameters, Action<TextWriter> action) { Body = action; View = view; Name = name; Parameters = parameters; Sections = new Dictionary<string, Action<TextWriter>>(); }
/// <summary> /// Initializes a new instance of the <see cref="NHamlViewComponentContext"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="body">The body.</param> /// <param name="name">The name.</param> /// <param name="text">The text.</param> /// <param name="parameters">The parameters.</param> public NHamlViewComponentContext(NHamlMonoRailView parent, Action<TextWriter> body, string name, TextWriter text, IDictionary parameters) { this.parent = parent; Body = body; ComponentName = name; Writer = text; ComponentParameters = parameters; }
/// <summary> /// Initializes a new instance of the <see cref="NHamlViewComponentContext"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="body">The body.</param> /// <param name="name">The name.</param> /// <param name="text">The text.</param> /// <param name="parameters">The parameters.</param> public NHamlViewComponentContext(NHamlMonoRailView parent, Action <TextWriter> body, string name, TextWriter text, IDictionary parameters) { this.parent = parent; Body = body; ComponentName = name; Writer = text; ComponentParameters = parameters; }
public ComponentData(NHamlMonoRailView view, string name, IDictionary <string, object> parameters, Action <TextWriter> action) { Body = action; View = view; Name = name; Parameters = parameters; Sections = new Dictionary <string, Action <TextWriter> >(); }
private void SetParent(NHamlMonoRailView view) { ViewEngine = view.ViewEngine; parent = view; }
public ReturnOutputStreamToInitialWriter(TextWriter initialWriter, NHamlMonoRailView parent) { this.initialWriter = initialWriter; this.parent = parent; }
public ComponentData(NHamlMonoRailView view, string name, IDictionary<string, object> parameters):this(view,name, parameters, null) { }
public ComponentData(NHamlMonoRailView view, string name, IDictionary <string, object> parameters) : this(view, name, parameters, null) { }