0

I've used to hamlet to produce an internal stylesheet as follows:

style = [hamlet|<style type=text/css> h3 {margin-bottom: 0} |]

How might this be rewritten to use Cassius/Lucius instead of plain text?

arrowd
  • 33,231
  • 8
  • 79
  • 110
elihulike
  • 21
  • 1

1 Answers1

1
toWidget [lucius|
h3 {
    margin-bottom: 0;
}
|]

Will produce a Yesod widget which contains your CSS. The Yesod book http://www.yesodweb.com/book has some very enlightening examples of this kind of thing.

Matthew Walton
  • 9,809
  • 3
  • 27
  • 36