Skip to content

v0.0.5

Latest

Choose a tag to compare

@mattn mattn released this 31 Oct 11:43
4f81fc5

Security

  • Fix XSS: #{...} interpolation output was not HTML-escaped in text and attribute values (GHSA-7fgh-h7wv-pc8m). Thanks to @ucsurf for the report.

Breaking change

#{...} is now HTML-escaped, matching Ruby Slim. If you relied on #{...} to output raw HTML, use #{{...}} instead.

Features

  • Conditionals and comparison/logical operators
  • define / yield and SetLayout for layouts, matching Ruby Slim conventions
  • ParseFS for embed.FS
  • Wrapped attribute syntax with parentheses
  • Whitespace control with > and <
  • Explicit self-closing tags with /
  • goslim CLI: file input, layout, and JSON values

Fixes

  • Attributes after ID/class shortcuts
  • Channel iteration index is now 0-based
  • Integer division by zero panic in the VM
  • Float parse errors were silently ignored
  • Function type check before calling in the VM