Merge pull request #51239 from jherdman/tweak-tag-helper-docs [ci-skip]

More complicated tag helper example
This commit is contained in:
Petrik de Heus 2024-03-06 17:17:13 +01:00 committed by GitHub
commit 8b4432125a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -420,6 +420,14 @@ def method_missing(called, *args, escape: true, **options, &block)
# # A void element:
# tag.br # => <br>
#
# Note that when using the block form options should be wrapped in
# parenthesis.
#
# <%= tag.a(href: "/about", class: "font-bold") do %>
# About the author
# <% end %>
# # => <a href="/about" class="font-bold">About the author</a>
#
# === Building HTML attributes
#
# Transforms a Hash into HTML attributes, ready to be interpolated into