lib/tilt/radius.rb in tilt-1.4.1 vs lib/tilt/radius.rb in tilt-2.0.0.beta1
- old
+ new
@@ -1,15 +1,12 @@
require 'tilt/template'
+require 'radius'
module Tilt
# Radius Template
# http://github.com/jlong/radius/
class RadiusTemplate < Template
- def self.engine_initialized?
- defined? ::Radius
- end
-
def self.context_class
@context_class ||= Class.new(Radius::Context) do
attr_accessor :tilt_scope
def tag_missing(name, attributes)
@@ -20,13 +17,9 @@
i = super
i.tilt_scope = tilt_scope
i
end
end
- end
-
- def initialize_engine
- require_template_library 'radius'
end
def prepare
end