Sha256: f9ea650103cb1b4921810bfe48a02451de74c49f2e2c4cab0ce4145674abe829
Contents?: true
Size: 433 Bytes
Versions: 5
Compression:
Stored size: 433 Bytes
Contents
class MissingLibrary < Exception #:nodoc: all end begin require 'tilt' rescue LoadError => e 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::Apps.each do |c| c.module_eval $TILT_CODE end
Version data entries
5 entries across 5 versions & 1 rubygems