Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions demo/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ gem "kramdown"
gem "kramdown-parser-gfm"
gem "lookbook", ">= 2.3.11"
gem "rails_autolink"
gem "reactionview"

group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
Expand Down
12 changes: 12 additions & 0 deletions demo/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ GEM
ffi (1.17.2-x86_64-linux-musl)
globalid (1.2.1)
activesupport (>= 6.1)
herb (0.8.10-aarch64-linux-gnu)
herb (0.8.10-aarch64-linux-musl)
herb (0.8.10-arm-linux-gnu)
herb (0.8.10-arm-linux-musl)
herb (0.8.10-arm64-darwin)
herb (0.8.10-x86_64-darwin)
herb (0.8.10-x86_64-linux-gnu)
herb (0.8.10-x86_64-linux-musl)
htmlbeautifier (1.4.3)
htmlentities (4.3.4)
i18n (1.14.7)
Expand Down Expand Up @@ -240,6 +248,9 @@ GEM
rdoc (6.14.2)
erb
psych (>= 4.0.0)
reactionview (0.2.1)
actionview (>= 7.0)
herb (>= 0.8.0, < 1.0.0)
redcarpet (3.6.1)
reline (0.6.2)
io-console (~> 0.5)
Expand Down Expand Up @@ -307,6 +318,7 @@ DEPENDENCIES
puma (>= 5.0)
rails (~> 8.0.2)
rails_autolink
reactionview
sqlite3 (>= 2.1)
tailwindcss-rails (~> 4.3)
tzinfo-data
Expand Down
11 changes: 11 additions & 0 deletions demo/config/initializers/reactionview.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

if defined?(ReActionView)
ReActionView.configure do |config|
# Intercept .html.erb templates and process them with `Herb::Engine` for enhanced features
config.intercept_erb = true

# Enable debug mode in development (adds debug attributes to HTML)
config.debug_mode = Rails.env.development?
end
end