Repository navigation
What's Changed
- Non-string values are now HTML-escaped (#25)
- Symbols and other objects used as children or attribute values were written into the HTML unescaped. They are now converted to strings and escaped like strings.
- A component that returns a string or symbol instead of an element is escaped as well, and a component that returns
nilrenders nothing (previouslyNIL). - Strings, numbers and keywords render the same as before. Use
raw!for trusted HTML.
- Dotted lists in element forms are now an error (#24)
(hsx (div . x))used to expand unchanged, and(hsx (div a . b))failed with an unrelatedTYPE-ERROR. Both now signalhsx/dsl:malformed-hsx-format macroexpansion. Dotted lists inside ordinary Lisp forms are unaffected.
- Removed CSS minification from
<style>(#26)<style>is now treated like any other tag: strings are escaped andraw!content is emitted as-is, so(style (raw! "a > b { ... }"))works (it previously failed with aTYPE-ERROR).- If you want minified CSS, minify it yourself before passing it to
raw!. hsx/element:style-tagis no longer exported, and thecl-minify-cssdependency was dropped.
Full Changelog: 1.5.1...1.6.0