lib/hamlit/compiler/script_compiler.rb in hamlit-2.7.5 vs lib/hamlit/compiler/script_compiler.rb in hamlit-2.8.0

- old
+ new

@@ -1,8 +1,7 @@ # frozen_string_literal: true require 'hamlit/ruby_expression' -require 'hamlit/static_analyzer' require 'hamlit/string_splitter' module Hamlit class Compiler class ScriptCompiler @@ -15,10 +14,10 @@ case when no_children && node.value[:escape_interpolation] compile_interpolated_plain(node) when no_children && RubyExpression.string_literal?(node.value[:text]) delegate_optimization(node) - when no_children && StaticAnalyzer.static?(node.value[:text]) + when no_children && Temple::StaticAnalyzer.static?(node.value[:text]) static_compile(node) else dynamic_compile(node, &block) end end