在 slim 中,我如何在两行文本之间放置图像?
in slim how can i place in image between 2 lines of text?
我想在 h1 样式的文本行之间显示徽标图像。我正在使用苗条。我如何重写这段显示在一行中的代码?
h1 text1
=image_tag 'image'
h1 text 2
或
h1 text1 =image_tag 'image' rest of text1
这可能吗?
想通了:
h1
|text1
=image_tag "image"
|text2
该解决方案的灵感来自这个问题,该问题有一个很好的使用 Slim 的例子:
rails slim indent syntax error
我想在 h1 样式的文本行之间显示徽标图像。我正在使用苗条。我如何重写这段显示在一行中的代码?
h1 text1
=image_tag 'image'
h1 text 2
或
h1 text1 =image_tag 'image' rest of text1
这可能吗?
想通了:
h1
|text1
=image_tag "image"
|text2
该解决方案的灵感来自这个问题,该问题有一个很好的使用 Slim 的例子:
rails slim indent syntax error