Skip to content

Commit

Permalink
Change check for Haml version.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Apr 4, 2023
1 parent 98569b2 commit 08fcd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/rdfa/writer.rb
Expand Up @@ -764,7 +764,7 @@ def hamlify(template, locals = {})
log_debug {"hamlify locals: #{locals.inspect}"}

haml_opts = @options[:haml_options] || HAML_OPTIONS
haml_runner = if Haml.const_defined?(:Template)
haml_runner = if Haml::VERSION >= "6"
Haml::Template.new(**haml_opts) {template}
else
Haml::Engine.new(template, **haml_opts)
Expand Down

0 comments on commit 08fcd25

Please sign in to comment.