Search code examples
htmlruby-on-railsslim-lang

How do I use span tag in Slim?


All I am trying to do is convert this line to Slim:

<span id="slider-value"></span>

but everything I have tried from the documentation prints out exactly what I typed and not the value of "slider-value"


Solution

  • Make sure you have you file ending with the .slim extension (your_file.html.slim).

    Then you will be able to write your span tag

    span id="slider-value"