在 HAML 中打开和关闭尖括号

Open and close angle bracket in HAML

我在源代码中发现了类似于 %strong><= 5 的内容。

在 HAML 中,><、右尖括号的作用是什么?

http://haml.info/docs/yardoc/file.REFERENCE.html

Whitespace Removal: > and <

> and < give you more control over the whitespace near a tag. > will remove all whitespace surrounding a tag, while < will remove all whitespace immediately within a tag. You can think of them as alligators eating the whitespace: > faces out of the tag and eats the whitespace on the outside, and < faces into the tag and eats the whitespace on the inside. They’re placed at the end of a tag definition, after class, id, and attribute declarations but before / or =.