public static HxlTemplate FromStreamContext(StreamContext input)
        {
            if (input == null)
            {
                throw new ArgumentNullException("input");
            }

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

            HxlCompiler.Create(settings).GenerateSource(outputWriter, this);
        }
 public static HxlTemplate Parse(string text)
 {
     return(HxlCompiler.Create().ParseTemplate(text));
 }