yesodweb / shakespeare

Haml-like template files that are compile-time checked
http://www.yesodweb.com/book/shakespearean-templates
MIT License
136 stars 76 forks source link

Add support for sub-blocks in mixins #264

Closed ivb-supercede closed 2 years ago

ivb-supercede commented 2 years ago

Fixes a TODO!

This has been a recent pain point for us, because we have a button mixin that basically wants to do this

&__button {
  &:hover {
    ...
  }
  ...
}

But we can't, because of the lack of blocks in mixins. Instead, we're forced to have multiple mixins per call-site, which is nasty.