我在HAML输入文字:HAML添加轨的link_to后点之前删除空格,MAIL_TO
Blab bla for any questions contact us on [email protected]
所以HAML看起来像
%p
Blab bla for any questions contact us on
= mail_to '[email protected]'
.
注.在ASCII码点,我也可以替换该行与= '.'
(渲染串点)
,但呈现的文本看起来像
Blab bla for any questions contact us on [email protected] .
不同的是在最后
点之前空白解决方案我想出了和作品是
%p
Blab bla for any questions contact us on
= mail_to('[email protected]') + '.'
这只是我正在寻找最佳实践:) thx
这是一个史诗般的胜利:)!谢谢。链接也很有帮助。 – equivalent8 2012-02-29 15:57:30
还有一个问题是,当使用任何ruby框架(sinatra,padrino f.e.)时,这仅仅是本地轨道事件,或者默认情况下由haml支持? – equivalent8 2012-02-29 16:01:38
@ equivalent8这是正常的Haml行为:http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#ruby_interpolation_ – matt 2012-02-29 17:53:02