如何在textile标记中嵌入ruby代码?
下面是我正在使用的一个示例:
doc = RedCloth.new <<-EOD
h1. Images
"backward":[choose previous image...1.png] "forward":[choose next image...3.png]
!http://www.w3.org/Icons/valid-html401!:http://validator.w3.org/check?uri=referer
EOD发布于 2013-07-26 03:17:30
下面的代码应该可以工作:
doc = RedCloth.new <<-EOD
#{h1. Images}
#{"backward":[choose previous image...1.png]} #{"forward":[choose next image...3.png]}
#{!http://www.w3.org/Icons/valid-html401!:http://validator.w3.org/check?uri=referer}
EODhttps://stackoverflow.com/questions/17866855
复制相似问题