Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.33 KB

CHANGELOG.md

File metadata and controls

36 lines (29 loc) · 1.33 KB

1.2.0

  • Improve output safety.
    • HTML tags are now automatically escaped when they come from Ruby code.
  • Add fragment support.
    • Analogous to JSX fragments, eg. <>foo</>.
  • Add keyword argument support in HTML attributes.
    • Eg. <div {**kwargs} bar="baz">boo</div>.
  • Add ViewComponent slot support.
    • Works via pseudo components that begin with With, eg. <MySlotComponent><WithItem>Item</WithItem></MySlotComponent>.
  • Allow printing ruxc results to STDOUT.
  • Support for unquoted attributes.
  • Drop explicit support for Ruby versions < 3.

1.1.2

  • Don't slugify HTML attributes in the tag builder either.

1.1.1

  • Don't slugify HTML attributes.
    • Previously rux would emit <div data-foo="bar"> as <div data_foo="bar"> because it treated HTML attributes as if they were being passed as Ruby arguments, which don't allow dashes. If these arguments are passed to a component initializer, then they must be slugified, but HTML attributes shouldn't be affected.

1.1.0

  • Remove newlines between elements. (@aalin, #3)

1.0.3

  • Use modern AST format.
  • Switch back to unparser v0.6.

1.0.2

1.0.1

  • Fix bug in default buffer implementation causing TypeErrors when attempting to shovel in arrays.

1.0.0

  • Birthday!