我需要创建一个速度文档,其中有一些以“## Foo”为前缀的行,但由于这#
是速度指令命令,它对我不起作用。
我希望我的输出文档看起来像:
## Foo this
## Bar that
k1, v1
k2, v2
k3, v3
逃避并没有达到我的预期。显然,以下内容不起作用,因为#
s 未转义):
## Foo this
## Bar that
#foreach( $foo in $bar )
$foo.key, $foo.value
#end
## 行没有出现 - 再次,正如预期的那样。但是,我的逃跑尝试也没有奏效。逃生解决方案一:
\## Foo this
\## Bar that
#foreach( $foo in $bar )
$foo.key, $foo.value
#end
或者这个,逃避解决方案二:
\#\# Foo this
\#\# Bar that
#foreach( $foo in $bar )
$foo.key, $foo.value
#end
甚至这个...
# set($msg = "##")
$msg Foo this
$msg Bar that
#foreach( $foo in $bar )
$foo.key, $foo.value
#end
最后一个真的让我很困惑。
有任何想法吗?