Exemplo n.º 1
0
 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;
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 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> >();
 }
Exemplo n.º 5
0
 private void SetParent(NHamlMonoRailView view)
 {
     ViewEngine = view.ViewEngine;
     parent = view;
 }
Exemplo n.º 6
0
 public ReturnOutputStreamToInitialWriter(TextWriter initialWriter, NHamlMonoRailView parent)
 {
     this.initialWriter = initialWriter;
     this.parent = parent;
 }
Exemplo n.º 7
0
 public ComponentData(NHamlMonoRailView view, string name, IDictionary<string, object> parameters):this(view,name, parameters, null)
 {
 }
Exemplo n.º 8
0
 private void SetParent(NHamlMonoRailView view)
 {
     ViewEngine = view.ViewEngine;
     parent     = view;
 }
Exemplo n.º 9
0
 public ReturnOutputStreamToInitialWriter(TextWriter initialWriter, NHamlMonoRailView parent)
 {
     this.initialWriter = initialWriter;
     this.parent        = parent;
 }
Exemplo n.º 10
0
 public ComponentData(NHamlMonoRailView view, string name, IDictionary <string, object> parameters) : this(view, name, parameters, null)
 {
 }