Пример #1
0
	/// <summary>
	/// Sole public CTOR.  We rely on the caller to give us a
	/// VelocityEngine ready with all macros registered.
	/// The context is the callers context with all tools and
	/// style drek.
	/// </summary>
	public Transformer(VelocityEngine ve, TemplateHandler th, IContext context, Hashtable applicationValues, bool validate) {
	    this.ve = ve;
	    this.baseContext = context;
	    this.templateHandler = th;

	    appValue = applicationValues;
	}
Пример #2
0
        /// <summary>
        /// Sole public CTOR.  We rely on the caller to give us a
        /// VelocityEngine ready with all macros registered.
        /// The context is the callers context with all tools and
        /// style drek.
        /// </summary>
        public Transformer(VelocityEngine ve, TemplateHandler th, IContext context, Hashtable applicationValues, bool validate)
        {
            this.ve              = ve;
            this.baseContext     = context;
            this.templateHandler = th;

            appValue = applicationValues;
        }