/// <summary>
        /// 获取数据模板内容
        /// </summary>
        /// <param name="filePath">文件模板的文件路径,使用绝对路径,如:/wwwtpl/Index.hbhtml(或视图文件名,不包含扩展名)</param>
        /// <returns></returns>
        public dynamic GetDataContent(string filePath)
        {
            if (!Regex.IsMatch(filePath, @"\/", RegexOptions.IgnoreCase))
            {
                filePath = string.Format("/wwwtpl/{0}.hbhtml", filePath.Replace(".hbhtml", ""));
            }

            HbTemplate hbt = GetHbTemplateObj(filePath);

            return(hbt.DataTemplate);
        }
        /// <summary>
        /// 获取模板文件内容
        /// </summary>
        /// <param name="filePath">文件模板的文件路径,使用绝对路径,如:/wwwtpl/Index.hbhtml</param>
        /// <returns>模板文件内容</returns>
        public override string GetFileContent(string filePath)
        {
            HbTemplate hbt = GetHbTemplateObj(filePath);

            return(hbt.ViewTemplate);
        }
 /// <summary>
 /// 添加文件模板到字典的方法
 /// </summary>
 /// <param name="filePath">文件模板的文件路径,使用绝对路径,如:/wwwtpl/Index.hbhtml</param>
 /// <param name="fileContent">文件模板内容</param>
 public void Add(string filePath, string fileContent, dynamic dataContent)
 {
     templateDictionary[filePath] = new HbTemplate(fileContent, dataContent);
 }