How do you use multiple css classes in HAML?

Jeremy Smith picture Jeremy Smith · Nov 1, 2011 · Viewed 6.9k times · Source

If I am chaining multiple css classes where the HTML would come out looking like:

<a class="btn primary large">

How would I do this in HAML? These guesses didn't work:

.btn-primary-large
."btn-primary-large"

Answer

Adam Lear picture Adam Lear · Nov 1, 2011

Use dots instead of dashes:

.btn.primary.large