예제 #1
0
        public static Document CreateFromFullPath(Context context, string fullpath)
        {
            Document document = new Document();

            document.Context = Context.CreateFromSource(context.Root, fullpath);
            document.SetFilename(fullpath);
            return(document);
        }
예제 #2
0
        public void Process(Document input, Stage output)
        {
            IEnumerable <string> folders = Disk.Directories(input.Context.Source.Directory, pattern);

            foreach (string folder in folders)
            {
                Context context = Context.CreateFromSource(input.Context.Root, folder);

                IWork work = Make.InterpretDocument(input.Text, context);
                work.Execute();
            }
        }