예제 #1
0
        public static List <DocumentToken> Load(string filename)
        {
            var loader = new DocumentLoader();

            var root = loader.LoadDocument(filename, filename);

            loader.Documents.Add(root);

            loader.Gather(filename, root);

            return(loader.Documents);
        }
예제 #2
0
파일: Loader.cs 프로젝트: jamesaxl/reactor
        public static List<DocumentToken> Load(string filename)
        {
            var loader = new DocumentLoader();

            var root = loader.LoadDocument(filename, filename);

            loader.Documents.Add(root);

            loader.Gather(filename, root);

            return loader.Documents;
        }
예제 #3
0
        public Template(string filename)
        {
            var documents = DocumentLoader.Load(filename);

            this.document = DocumentTransform.Transform(documents[0], documents);
        }