Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiline string in slim

I want to have a string of multiple lines in a slim template, like this:

style
  |  .card {
  |    height: 100px;
  |    text-align: center;
  |  }

Currently this works but it means I have to put | at the start of every line, which is really annoying.

Is there any way to have a multiline string in slim?

like image 525
Mirror318 Avatar asked Dec 03 '25 15:12

Mirror318


1 Answers

From https://github.com/slim-template/slim#verbatim-text-

style
  |
    .card {
      height: 100px;
      text-align: center;
    }

Or https://github.com/slim-template/slim#embedded-engines-markdown-

css:
  .card {
    height: 100px;
    text-align: center;
  }

Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!