Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Groovy'中转义特殊字符;s SimpleTemplateEngine?_Groovy_Templates_Escaping - Fatal编程技术网

如何在Groovy'中转义特殊字符;s SimpleTemplateEngine?

如何在Groovy'中转义特殊字符;s SimpleTemplateEngine?,groovy,templates,escaping,Groovy,Templates,Escaping,默认情况下,groovy的SimpleTemplateEngine使用作为scriptlet容器。如果要打印出,如何转义这些字符?看起来可能是个bug 我读过的那本书(可能已经过时)说,你需要有一个包含的变量,然后你需要输出这些变量

默认情况下,groovy的SimpleTemplateEngine使用
作为scriptlet容器。如果要打印出
,如何转义这些字符?

看起来可能是个bug

我读过的那本书(可能已经过时)说,你需要有一个包含的变量,然后你需要输出这些变量