Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using a slash in Slim

Tags:

slim-lang

I have the following code that's causing a Slim::Parser::SyntaxError:

p
  code.inline /charge

I expect this to output <code class="inline">/charge</code> but it's just causing Slim to get upset.

Why?

like image 944
FloatingRock Avatar asked Feb 25 '26 12:02

FloatingRock


1 Answers

Solved it using the escape character ', like so:

p
  code.inline
    '/charge

Hacky, but whatever .. it works.

like image 152
FloatingRock Avatar answered Mar 04 '26 19:03

FloatingRock