Html Helpers

{{attr}}

Stringify attributes from the options hash into an HTML attribute string.

Params

  • options {Object}: Options object with a hash property containing key-value pairs
  • returns {String}: Space-prefixed attribute string, or empty string if no attributes

Example