render method does not accept template-locations in scala

8 views
Skip to first unread message

getagrip

unread,
Jul 15, 2010, 10:16:46 AM7/15/10
to play-framework
Hi,
using the scala module I pass an alternative template-location in my
controller's "render" method but the ControllerDelegate calls
"renderTemplate" in Controller.java directly.

Shouldn't it call "render" so that you can pass a default Template-
Name just like in the Java version?

Nicolas Leroux

unread,
Jul 15, 2010, 10:46:15 AM7/15/10
to play-fr...@googlegroups.com
I think you can simply do:

("pathtothetemplate").render(args)

Nicolas

2010/7/15 getagrip <geta...@web.de>:

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Nicolas Leroux

getagrip

unread,
Jul 15, 2010, 1:49:33 PM7/15/10
to play-framework
that did it, thanks!

On Jul 15, 4:46 pm, Nicolas Leroux <leroux.nico...@gmail.com> wrote:
> I think you can simply do:
>
> ("pathtothetemplate").render(args)
>
> Nicolas
>
> 2010/7/15 getagrip <getag...@web.de>:
Reply all
Reply to author
Forward
0 new messages