Skip to content

Commit e137978

Browse files
committed
Install reactionview, add config
1 parent 69bb83f commit e137978

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gem "propshaft"
2121
gem "puma", ">= 5.0"
2222
gem "rack-attack"
2323
gem "rails", "~> 8.0.4"
24+
gem "reactionview", "~> 0.1.2"
2425
gem "requestjs-rails"
2526
gem "scout_apm"
2627
gem "scout_apm_logging", "~> 2.1"

Gemfile.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@ GEM
212212
rake (>= 13)
213213
googleapis-common-protos-types (1.22.0)
214214
google-protobuf (~> 4.26)
215+
herb (0.7.2-aarch64-linux-gnu)
216+
herb (0.7.2-aarch64-linux-musl)
217+
herb (0.7.2-arm-linux-gnu)
218+
herb (0.7.2-arm-linux-musl)
219+
herb (0.7.2-arm64-darwin)
220+
herb (0.7.2-x86_64-darwin)
221+
herb (0.7.2-x86_64-linux-gnu)
222+
herb (0.7.2-x86_64-linux-musl)
215223
hotwire-spark (0.1.13)
216224
listen
217225
rails (>= 7.0.0)
@@ -436,6 +444,9 @@ GEM
436444
erb
437445
psych (>= 4.0.0)
438446
tsort
447+
reactionview (0.1.2)
448+
actionview (>= 7.0)
449+
herb (>= 0.7.0, < 1.0.0)
439450
regexp_parser (2.11.3)
440451
reline (0.6.2)
441452
io-console (~> 0.5)
@@ -621,6 +632,7 @@ DEPENDENCIES
621632
rack-mini-profiler
622633
rails (~> 8.0.4)
623634
rails-controller-testing
635+
reactionview (~> 0.1.2)
624636
requestjs-rails
625637
rspec-rails
626638
rubocop-rails-omakase
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
ReActionView.configure do |config|
4+
# Intercept .html.erb templates and process them with `Herb::Engine` for enhanced features
5+
config.intercept_erb = true
6+
7+
# Enable debug mode in development (adds debug attributes to HTML)
8+
config.debug_mode = Rails.env.development?
9+
end

0 commit comments

Comments
 (0)