rld
rld

Reputation: 2763

How to use the Embedded Ruby -%> to slim

How to do this <%= -%> in slim, for example:

= "#{state}" -

or

= "#{state} -"

Upvotes: 0

Views: 112

Answers (1)

draganstankovic
draganstankovic

Reputation: 5436

The support for no-space around tags (<%= -%>) should be available via smart text plugin (https://github.com/slim-template/slim/blob/master/doc/smart.md) that should be included by default with slim, so a simple require 'slim/smart' and you should be able to just do the following (without =):

p
  #{state}

Upvotes: 1

Related Questions