Tuple support
Opened this issue · 0 comments
kazuhira-r commented
In Velocity Template, can not have access to the tuple of Scala.
example 1.
Template.
${tuple._1} : ${tuple._2}
Result.
[error] (run-main-1) org.apache.velocity.exception.ParseErrorException: Encountered "._1} : " at template.vm[line 13, column 8]
[error] Was expecting one of:
[error] "[" ...
[error] "}" ...
[error]
org.apache.velocity.exception.ParseErrorException: Encountered "._1} : " at template.vm[line 13, column 8]
Was expecting one of:
"[" ...
"}" ...
example 2.
Template.
$tuple._1 : $tuple._2
Context Value.
context.put("tuple", "name" -> "Taro")
Result.
(name,Taro)._1 : (name,Taro)._2
I want to improve this.