Hamlit v2.16.1 Release Notes

Release Date: 2022-08-07 // over 1 year ago
  • ➕ Added

    • Introduce :disable_capture option to capture a block
      • Default: disable_capture: true (backward-compatible)
        • For Rails, this must be true anyway to use Rails-native capturing.
      • If you override the option like disable_capture: false in Hamlit::Template, scripts starting with = (e.g. = render do) capture a block content.
        • Scripts starting with - (e.g. - users.each do) are not impacted.