Skip to content

0.1.0-alpha025

Pre-release
Pre-release
Compare
Choose a tag to compare
@dustinmoris dustinmoris released this 22 Jul 11:02
· 1109 commits to master since this release

Changed the type XmlAttribute from the XmlViewEngine to accept either a string * string key value pair or a boolean attribute of type string. This was a missing to enable script tags such as <script src="..." async></script>.

Added two helper functions (attr and flag) to simplify the creation of those attributes:

script [
    attr "src" "http://example.org/example.js"
    attr "lang" "javascript"
    flag "async" ] []