首页 新闻 会员 周边

StringTemplate模板文件组加载问题

0
[已关闭问题]

我用的是StringTemplate.Net.v3.1b1.net-2.0 c#版,

在template文件夹下有hello.st, test.st模板, 还有个grouptest.st 模板组我文件, 里面定义了几个模板(jjj), 现在问题是可以调用hello,test模板,但是调用不到grouptest里定义的模板, 提示 Can't load template 'jjj.st'; context is [test]   代码如下:

StringTemplateGroup group = new StringTemplateGroup("all", HttpContext.Current.Server.MapPath("~/App_Data/Template"));

StringTemplate st = group.GetInstanceOf("test");
       
st.SetAttribute("title", "StringTemplate Demo");
st.SetAttribute("now", DateTime.Now);

TextBox1.Text = st.ToString();

jefferyhi的主页 jefferyhi | 菜鸟二级 | 园豆:205
提问于:2008-10-07 13:59
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册