lib/tilt/plain.rb in tilt-2.1.0 vs lib/tilt/plain.rb in tilt-2.2.0

- old
+ new

@@ -1,16 +1,5 @@ -require 'tilt/template' +# frozen_string_literal: true +require_relative 'template' - -module Tilt - # Raw text (no template functionality). - class PlainTemplate < Template - self.default_mime_type = 'text/html' - - def prepare - end - - def evaluate(scope, locals, &block) - @output ||= data - end - end -end +# Raw text (no template functionality). +Tilt::PlainTemplate = Tilt::StaticTemplate.subclass{@data}