开发者

Calling static method from template in Apache Click

How 开发者_如何学Pythoncan I call a static method from a (velocity) template when using Apache Click?


You can use

addModel("MyClass", MyClass.class)

in your Page.


Velocity 1.6 and up supports this:

http://velocity.apache.org/engine/devel/developer-guide.html#supportforstaticclasses

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜