play framework plugin for freemarker template engine

227 views
Skip to first unread message

Bhawna

unread,
Oct 28, 2011, 5:22:14 PM10/28/11
to play-framework
Hi folks,
I am trying to develop a plugin to use freemarker template engine
with Play!
I have done it in a hackish way by altering Controller file 'render'
function.

I am going through the japid plugin and looks like in this case I will
have to handle the complete request/response.
i.e. through - rawInvocation(Http.Request request, Http.Response
response)
Is there any other way of doing this?


green

unread,
Oct 29, 2011, 6:43:12 AM10/29/11
to play-fr...@googlegroups.com
I prefer to override "loadTemplate" method of PlayPlugin which returns your Template implementation. You could check the Excel plugin implementation:  https://github.com/greenlaw110/play-excel/blob/1.2/src/play/modules/excel/Plugin.java 



--
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.


Reply all
Reply to author
Forward
0 new messages