コード例 #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>>();
 }
コード例 #2
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;
 }
コード例 #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;
 }
コード例 #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> >();
 }
コード例 #5
0
 private void SetParent(NHamlMonoRailView view)
 {
     ViewEngine = view.ViewEngine;
     parent = view;
 }
コード例 #6
0
 public ReturnOutputStreamToInitialWriter(TextWriter initialWriter, NHamlMonoRailView parent)
 {
     this.initialWriter = initialWriter;
     this.parent = parent;
 }
コード例 #7
0
 public ComponentData(NHamlMonoRailView view, string name, IDictionary<string, object> parameters):this(view,name, parameters, null)
 {
 }
コード例 #8
0
 private void SetParent(NHamlMonoRailView view)
 {
     ViewEngine = view.ViewEngine;
     parent     = view;
 }
コード例 #9
0
 public ReturnOutputStreamToInitialWriter(TextWriter initialWriter, NHamlMonoRailView parent)
 {
     this.initialWriter = initialWriter;
     this.parent        = parent;
 }
コード例 #10
0
 public ComponentData(NHamlMonoRailView view, string name, IDictionary <string, object> parameters) : this(view, name, parameters, null)
 {
 }