public ViewGenerator(string file, string name, ViewConfiguration config) { var f = File.OpenText(file); string text = f.ReadToEnd(); Init(text, name, config); }
void Init(string text, string name, ViewConfiguration config) { Accessibility = "public"; GeneratedInterface = new InterfaceGenerator(); AutoInterfaces = config.AutoInterfaces; DefaultBaseClass = config.BaseClass; Input = text; Name = name; Namespace = config.DefaultNamespace; RenderDirectly = config.RenderDirectly; DetectNulls = config.DetectChainedNulls; }
public void SetUp() { Config=new ViewConfiguration { AutoInterfaces=false, DefaultNamespace="Earlz.LucidMVC.MyViews", RenderDirectly=false, DetectChainedNulls=false, BaseClass="Earlz.LucidMVC.ViewEngine.Internal.LucidViewDummy", UsePartials=false, UseInternal=false, }; }
public ViewGenerator(string name, ViewConfiguration config) { Init(null, name, config); }
void Init(string text,string name,ViewConfiguration config) { Accessibility="public"; GeneratedInterface=new InterfaceGenerator(); AutoInterfaces=config.AutoInterfaces; DefaultBaseClass=config.BaseClass; Input=text; Name=name; Namespace=config.DefaultNamespace; RenderDirectly=config.RenderDirectly; DetectNulls=config.DetectChainedNulls; }
public ViewGenerator(string name, ViewConfiguration config) { Init (null, name, config); }
public ViewGenerator(string file,string name, ViewConfiguration config){ var f=File.OpenText(file); string text=f.ReadToEnd(); Init (text, name, config); }