Jonathan de M. Jonathan de M. - 5 months ago 52
Ruby Question

Open and close angle bracket in HAML

I found something similar to

%strong><= 5
in a source code.

What does
, open close angle brackets, do in HAML?


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 =.