Changes for Fedora ruby 3.4 and rails 8

This commit is contained in:
2025-02-10 10:39:21 -05:00
parent c880153898
commit 58178cc66d
47 changed files with 385 additions and 297 deletions
@@ -1,12 +1,12 @@
module MustacheTemplateHandler
def self.call(template, source)
binding.pry
if template.locals.include? :locals
"Mustache.render(#{template.source.inspect}, locals).html_safe"
else
"#{template.source.inspect}.html_safe"
end
end
end
ActionView::Template.register_template_handler(:mustache, MustacheTemplateHandler)
ActionController::Base.view_paths << Rails.root.join('app', 'templates')
# module MustacheTemplateHandler
# def self.call(template, source)
# binding.pry
# if template.locals.include? :locals
# "Mustache.render(#{template.source.inspect}, locals).html_safe"
# else
# "#{template.source.inspect}.html_safe"
# end
# end
# end
# ActionView::Template.register_template_handler(:mustache, MustacheTemplateHandler)
# ActionController::Base.view_paths << Rails.root.join('app', 'templates')