Skip to content

Release 1.4.0

Latest

Choose a tag to compare

@micheltlutz micheltlutz released this 16 Jul 01:56

WingedSwift 1.4.0

HTML DSL improvements for richer Bootstrap/template markup without string-HTML workarounds.

Added

  • RawHTML — render markup without a wrapper element
  • Attribute.boolean(_:) — boolean attrs (hidden, checked, required, …)
  • HTMLFragmentBuilder + fragment { } — flat tag lists with buildArray / map
  • New tags: I, Br, Hr, Strong, Em, Small
  • A and H1H6 accept children: [HTMLTag]

Changed

  • HTML5 void elements by default (<img>, <br>, …); set HTMLTag.xhtmlSelfClosing = true for XHTML
  • Button: optional type (button / submit / reset)
  • Label: optional for
  • Input: optional name
  • Section: aligned with Div (content + escapeContent)

SPM

.package(url: "https://github.com/micheltlutz/Winged-Swift.git", from: "1.4.0")