$newline never
in Hamlet allows us to minify the HTML code. If we set it in a parent widget, it takes effect on it but not on the child widgets. So we have to set $newline never
to all of the widgets when we want to minify the whole code. This isn't good.
Don't you know any better solutions? Thanks.
You could define your own Hamlet quasi-quoter that defaults to
NoNewlines
in itsHamletSettings
, like the following (untested) code snippet:and then simply use it as
[myHamlet| ... |]
.