Exemplo n.º 1
0
 public static HamlDocument Create(string documentName, params HamlNode[] nodes)
 {
     var document = new HamlDocument(documentName);
     foreach (var node in nodes)
         document.AddChild(node);
     return document;
 }
Exemplo n.º 2
0
        public HamlDocument ParseHamlFile(HamlFile hamlFile)
        {
            var result = new HamlDocument(hamlFile.FileName);

            ParseNode(result, hamlFile);

            return result;
        }
Exemplo n.º 3
0
        public HamlDocument ParseHamlFile(HamlFile hamlFile)
        {
            var result = new HamlDocument(hamlFile.FileName);

            ParseNode(result, hamlFile);

            return(result);
        }
Exemplo n.º 4
0
        // TODO - Missing tests
        private HamlDocument ApplyMasterPage(HamlDocument hamlDocument, HamlDocument masterPage)
        {
            if (masterPage == null) return hamlDocument;

            HamlNodePartial partial = masterPage.GetNextUnresolvedPartial();
            partial.SetDocument(hamlDocument);
            return masterPage;
        }
Exemplo n.º 5
0
 public string Walk(HamlDocument document, string className, Type baseType, IEnumerable<string> imports)
 {
     ClassBuilder.Clear();
     base.Walk(document);
     return ClassBuilder.Build(className, baseType, imports);
 }