This commit is contained in:
SamDoiron
2020-01-21 22:12:20 -05:00
parent aa1ffb1fb8
commit a179fd84a3
14 changed files with 474 additions and 98 deletions
+10 -1
View File
@@ -1,7 +1,16 @@
require 'benchmark/ips'
require_relative 'theme_runner'
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
case ARGV.first.to_sym
when :lax
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
when :strict
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
when :superfluid
require 'liquid/superfluid'
Liquid::Template.error_mode = :strict
end
profiler = ThemeRunner.new
Benchmark.ips do |x|
+1 -1
View File
@@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'benchmark/ips'
requirf 'benchmark/ips'
require 'memory_profiler'
require_relative 'theme_runner'