3 ms·
Like others have said, that's mostly HAML. HAML syntax is actually succinct and nice once you know what the codes mean. Basics of it: indentation nests html el
by weaksauce 10y ago
Like others have said, that's mostly HAML. HAML syntax is actually succinct and nice once you know what the codes mean.
Basics of it: indentation nests html elements. each line is basically an element or a control structure. = is run this ruby code and display it. - is run this ruby code but don't display it. a period with something after it is shorthand for create a div with that as a class. the fact that it creates nicely formatted html that is automatically closed for you is a bonus. the #{} part is string interpolation that comes from ruby and those items inside that are just ruby objects with functions/attributes on them.
Give ruby a chance and you will likely fall in love with the syntax.