On Fri, 17 Apr 2015 22:43:31 +0200, Sönke Ludwig wrote:
Am 17.04.2015 um 22:35 schrieb Maxime Poulin:
The compile-time translation is currently a feature ofvibe.web.web.render
and doesn't work with the low levelrender
, so
the following should work:@translationContext!MyTranslations public class MyController { public void index() { render!("view.dt"); } }
It worked, thanks!
There should probably a warning message for this situation. I'll look
into that.
A warning would indeed be pretty nice in this situation. A way to manually pass a translation context to the parser would also be cool and make things a bit clearer. I don't have a use case for it (yet), but I'm thinking about compileDietFile
and compileDietString
when the output is not a web request, like a file or a pipe to a PDF generating program such as wkhtmltopdf.
Anyway, all good for now, thanks for the very fast response!