lib/camping/template.rb in camping-2.1.532 vs lib/camping/template.rb in camping-3.0.0

- old
+ new

@@ -6,12 +6,11 @@ raise MissingLibrary, "Tilt could not be loaded (is it installed?): #{e.message}" end $TILT_CODE = %{ Template = Tilt - include Tilt::CompileSite unless self.options[:dynamic_templates] } -Camping::S.sub! /autoload\s*:Template\s*,\s*['"]camping\/template['"]/, $TILT_CODE +Camping::S.sub!(/autoload\s*:Template\s*,\s*['"]camping\/template['"]/, $TILT_CODE) Camping::Apps.each do |c| c.module_eval $TILT_CODE end