一直在使用Slim模板进行一些YAML解析。Ruby/Slim:从YAML文件中解析Markdown
我YAML文件包含
shortdesc: >
markdown:
if you want to up the feelgood factor Cuban style, then this Monday night at The Buffalo Bar is for you...
但是当我输出模板中的shortdesc节点它显示为一个字符串,而不是解释。 (“降价:如果你....”)
有没有办法解析YAML输出字符串来解释降价代码? 如果我尝试
p
markdown:
= shortdesc
模板不明白调用包含YAML节点的变量。
这可能吗?
我目前使用maruku,我会检查是否有类似的东西和你的建议。欢呼声:) –
与== Maruku.new(@copy).to_html –