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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature request] - support for mulit-line string literale

tunggad opened this issue · comments

In Groovy we have """multi-line String literale goes there""". So it would be nice when we had something like that:

@ String value = """line 1
line 2
line 3 ...
"""
@

Its very handy to use and save uns much of string-concats. It should also be possible in script block %{...}%

I have something in mind about this. let's see.

version 0.8.6 added using back slash as a universal line continuation symbol. It works in any context.

Oh thats cool! I will try it asap.

Ok, the line-continuer \ is good enough, but to format/break multi-line string content one still need alot of \n\, not really nice as the obove proposed syntax with """ ... """.

not ideal, but that's a middle ground I can take for the moment.