public static HamlDocument Create(string documentName, params HamlNode[] nodes) { var document = new HamlDocument(documentName); foreach (var node in nodes) document.AddChild(node); return document; }
public HamlDocument ParseHamlFile(HamlFile hamlFile) { var result = new HamlDocument(hamlFile.FileName); ParseNode(result, hamlFile); return result; }
public HamlDocument ParseHamlFile(HamlFile hamlFile) { var result = new HamlDocument(hamlFile.FileName); ParseNode(result, hamlFile); return(result); }
// TODO - Missing tests private HamlDocument ApplyMasterPage(HamlDocument hamlDocument, HamlDocument masterPage) { if (masterPage == null) return hamlDocument; HamlNodePartial partial = masterPage.GetNextUnresolvedPartial(); partial.SetDocument(hamlDocument); return masterPage; }
public string Walk(HamlDocument document, string className, Type baseType, IEnumerable<string> imports) { ClassBuilder.Clear(); base.Walk(document); return ClassBuilder.Build(className, baseType, imports); }