我想將幾個模板文件放在名爲「模板」的目錄中,相對於我的應用程序的可執行文件,並使用它們。例如,一個模板文件被命名爲「Globals.st」。 這樣的話,我創建了一個TemplateGroupDirectory並加載模板: var group = new TemplateGroupDirectory("Templates");
var tmpl = group.GetInstanceOf("Glo
我在Java中使用StringTemplate 4.0.8。 在StringTemplate-4 documentation,它說, 字典的字符串也可以是可以參考的屬性 一旦 字典值已經嵌入在模板中,這將成爲通過屬性的動態作用域可見模板。 我到底該怎麼做?我可以做這樣的事情: output(input) ::= "The output is: <aDicitionary.input>"
aDi