Пример #1
0
        public static HxlTemplate FromStreamContext(StreamContext input)
        {
            if (input == null)
            {
                throw new ArgumentNullException("input");
            }

            return(HxlCompiler.Create().LoadTemplate(input));
        }
Пример #2
0
        public void GenerateSource(TextWriter outputWriter, HxlCompilerSettings settings = null)
        {
            if (outputWriter == null)
            {
                throw new ArgumentNullException("outputWriter");
            }

            HxlCompiler.Create(settings).GenerateSource(outputWriter, this);
        }
Пример #3
0
 public static HxlTemplate Parse(string text)
 {
     return(HxlCompiler.Create().ParseTemplate(text));
 }