在 Slim 中使用斜线

Using a slash in Slim

我有以下导致 Slim::Parser::SyntaxError 的代码:

p
  code.inline /charge

我希望这会输出 <code class="inline">/charge</code>,但这只会让 Slim 不高兴。

为什么?

使用转义字符 ' 解决了它,像这样:

p
  code.inline
    '/charge

Hacky,但无论如何..它有效。