How do you make text and variable in haml appear on same line?

后端 未结 2 1737
北海茫月
北海茫月 2021-01-16 18:33

I have this code and I want it to read as Volunteers Needed: 10 (event.numberofvolunteers value) on the same line. How can I do this without using css? I haven\'t found a sp

相关标签:
2条回答
  • 2021-01-16 19:17

    Best way to write this would be :

    %td Volunteers Needed: #{event.numberofvolunteers}
    
    0 讨论(0)
  • 2021-01-16 19:34

    Try this:

    %td= "Volunteers Needed: #{event.numberofvolunteers}"
    
    0 讨论(0)
提交回复
热议问题