Blog

Freemarker でテンプレート書くときに、Freemarker tag っぽいのを出力したい

${r"${person.name}"} で OK.

see. http://stackoverflow.com/questions/5207613/how-to-output-expression-in-freemarker-without-it-being-interpreted

r"" は python と同じく raw string を表す。 http://freemarker.incubator.apache.org/docs/dgui_template_exp.html#dgui_template_exp_direct_string