开发者

Grails use "render" in "Config.groovy"

开发者 https://www.devze.com 2023-03-28 08:41 出处:网络
Can I somehow do a a.b.c = g.render(template:\"/my/template\") in Config.groovy开发者_运维技巧 to get the rendered output of template.gsp as a String in a.b.c?

Can I somehow do a

a.b.c = g.render(template:"/my/template")

in Config.groovy开发者_运维技巧

to get the rendered output of template.gsp as a String in a.b.c? The template contains content such as ${resource(dir:'images',file:'spacer.gif')}.

0

精彩评论

暂无评论...
验证码 换一张
取 消