【发布时间】:2012-05-22 20:13:22
【问题描述】:
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 haml textmate textmatebundles
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 haml textmate textmatebundles
你一开始就需要那些竖条吗?我从未在我的 Haml 文件中以这种方式使用它们。根据 Haml 文档,the pipe character designates a multiline string:
%whoo
%hoo= h( |
"I think this might get " + |
"pretty long so I should " + |
"probably make it " + |
"multiline so it doesn't " + |
"look awful.") |
%p This is short.
所以,对于你正在做的事情,在你的一个参数之后的行尾加一个逗号就足以将下一个参数放在下一行的任何位置。
【讨论】: