コード例 #1
0
ファイル: MustacheView.cs プロジェクト: drmacm/patternlab-net
 public MustacheView(MustacheViewEngine engine, ControllerContext controllerContext,
                     VirtualPathProvider virtualPathProvider, string viewPath, string masterPath, Dictionary <string, object> parameters)
 {
     _engine              = engine;
     _controllerContext   = controllerContext;
     _masterPath          = masterPath;
     _parameters          = parameters;
     _viewPath            = viewPath;
     _virtualPathProvider = virtualPathProvider;
 }
コード例 #2
0
 /// <summary>
 /// Initialise a new Pattern Lab view
 /// </summary>
 /// <param name="engine">The current view engine</param>
 /// <param name="controllerContext">The current controller context</param>
 /// <param name="virtualPathProvider">The current virtual path provider</param>
 /// <param name="viewPath">The path to the view</param>
 /// <param name="masterPath">The optional path to the master view</param>
 /// <param name="parameters">Any pattern parameters</param>
 public MustacheView(MustacheViewEngine engine, ControllerContext controllerContext,
     VirtualPathProvider virtualPathProvider, string viewPath, string masterPath, Dictionary<string, object> parameters)
 {
     _engine = engine;
     _controllerContext = controllerContext;
     _masterPath = masterPath;
     _parameters = parameters;
     _viewPath = viewPath;
     _virtualPathProvider = virtualPathProvider;
 }