yesodweb/shakespeare — pull request #54 by simonmichael (2012-04-03 17:37:19+00:00)
Title: make it possible to enable newlines in Hamlet templates, making debugging easier

HamletSettings constructors, and default settings and rules, are now
exposed so that hamlet users can turn on newlines for any of hamlet's
modes. Also hamletCloseNewline is now hamletNewlines and affects most
(open tag, close tag, and ordinary content) lines.

(Hi Michael. The settings and rules are described as "Internal" but they're exported... so now we export a few more, enough to change them. An alternative would be to provide debug variants of all the *hamlet functions. A third option would be to always render with newlines, IMHO that's actually the more useful default.)