branaway / Japid

A Java-based statically-typed fast template engine that can be used in any Java code. It has special adapter for use with the Play! Framework.
113 stars 18 forks source link

RenderArgs in FunctionalTests #45

Open alexbezhan opened 12 years ago

alexbezhan commented 12 years ago

How to check renderArgs in tests ? Can you show a sample code ? I use standard renderArgs(String) but it doesn't work(empty).

branaway commented 12 years ago

Sorry this late to notice your issue. Can you show me a code snippet?

Not sure how it was related to Japid. This is how you can use renderArgs in a Japid template:

`MyType my = (MyType)renderArgs.get("aKey");