Skip to content

Commit

Permalink
turbo frame
Browse files Browse the repository at this point in the history
  • Loading branch information
sebyx07 committed Aug 12, 2024
1 parent fdbf1b0 commit 77de0fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@
@items.each do |item|
h1 item[:title]
end

turbo_frame id: '4'
end
%>
4 changes: 2 additions & 2 deletions lib/gem/ruby2html/render.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Render
kbd label legend li link main map mark meta meter nav noscript object ol optgroup option
output p param picture pre progress q rp rt ruby s samp script section select small source
span strong style sub summary sup table tbody td template textarea tfoot th thead time title
tr track u ul var video wbr
tr track u ul var video wbr turbo-frame
].freeze

VOID_ELEMENTS = %w[area base br col embed hr img input link meta param source track wbr].freeze
Expand Down Expand Up @@ -53,7 +53,7 @@ def render(*args, **options, &block)
end

HTML5_TAGS.each do |tag|
define_method(tag) do |*args, **options, &block|
define_method(tag.tr('-', '_')) do |*args, **options, &block|
html!(tag, *args, **options, &block)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gem/ruby2html/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Ruby2html
VERSION = '1.5.1'
VERSION = '1.5.2'
end

0 comments on commit 77de0fc

Please sign in to comment.