Skip to content

How to render a ruby variable alongside other content in a block? #579

Answered by joeldrapper
quaasy asked this question in Help
Discussion options

You must be logged in to vote

Hey @quaasy, you can use the plain method to do this.

ul do
  benefits.each do |benefit|
    li do
      span class: "icon"
      plain benefit
    end
  end
end

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@quaasy
Comment options

@joeldrapper
Comment options

Answer selected by quaasy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants