require 'tilt/template' module Jasmine::Headless class JSTemplate < Tilt::Template self.default_mime_type = 'application/javascript' def prepare ; end def evaluate(scope, locals, &block) if data[%r{^} : data end end end end