Sha256: d46ce491b4a571ad84384d1c39563b4dacf61e41238ecd1fad2875413b965ee0
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true Bridgetown.initializer :"roda-turbo" do |config| require "turbo/streams/tag_builder" # Add the Turbo plugin to the Roda app config.roda do |app| app.plugin :turbo end # Add a turbo_stream helper to Bridgetown views config.builder :RodaTurboBuilder do def build helper :turbo_stream do Turbo::Streams::TagBuilder.new(helpers.view, render_method: :partial) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roda-turbo-1.0.0 | lib/roda-turbo/bridgetown_helpers.rb |