Пример #1
0
        public static TemplateEngine Create(TemplateSyntax templateSyntax)
        {
            switch (templateSyntax)
            {
            case TemplateSyntax.Velocity:
                return(TemplateEngine.Velocity);

            case TemplateSyntax.DoubleCurly:
                return(TemplateEngine.Velocity);

            case TemplateSyntax.Xml:
                return(TemplateEngine.Velocity);

            case TemplateSyntax.ProMeshHtml:
                return(TemplateEngine.Velocity);

            default:
                return(TemplateEngine.Velocity);
            }
        }
Пример #2
0
 public virtual void VisitTemplate(TemplateSyntax node) =>
 this.DefaultVisit(node);