NVelocity 操作类VelocityHelper
using System; using System.Web; using System.IO; using NVelocity; using NVelocity.App; using NVelocity.Context; using NVelocity.Runtime; using Commons.Collections; using System.Text; namespace FoodunTemplateAction { /// <summary> /// NVelocity模板工具类 VelocityHelper /// </summary> public class VelocityHelper { private VelocityEngine velocity = null; private IContext context = null; /// <summary> /// 构造函数 /// </summary> /// <param name="templatDir">模板文件夹路径</param> public VelocityHelper(string templatDir) { Init(templatDir); } /// <summary> /// 无参数构造函数 /// </summary> public VelocityHelper() { } ///