Slim 模板语言里关于输出=
标记有一段说明怎么也看不明白,请指点一下???
的地方,谢谢!
Output =
输出标记 =
The equal sign tells Slim it's a Ruby call that produces output to add to the buffer. If your ruby code needs to use multiple lines, append a backslash \ at the end of the lines, for example:
这个=
告诉Slim
它是Ruby
调用产生到缓存的输出。如果你的Ruby
代码使用多行,在断行结尾要追加\
,就像下面范例:
= javascript_include_tag \
"jquery",
"application"
If your line ends with comma , (e.g because of a method call) you don't need the additional backslash before the linebreak. For trailing or leading whitespace the modifiers > and < are supported.
如果行尾是,
号(是由于某些方法的调用)就不需要在断行处加入反斜杠\
标记。?????????没翻译这句啥意思
Output with trailing white space =>. Same as the single equal sign (=), except that it adds a trailing white space.
????????没翻译这句啥意思
Output with leading white space =<. Same as the single equal sign (=), except that it adds a leading white space.
????????没翻译这句啥意思