class Tilt::StaticTemplate

def self.subclass(mime_type: 'text/html', &block)

def self.subclass(mime_type: 'text/html', &block)
  Class.new(self) do
    self.default_mime_type = mime_type
    private
    define_method(:_prepare_output, &block)
  end
end

def allows_script?

Static templates never allow script.
def allows_script?
  false
end

def compiled_method(locals_keys, scope_class=nil)

do not support compiled methods.
Raise NotImplementedError, since static templates
def compiled_method(locals_keys, scope_class=nil)
  raise NotImplementedError
end

def prepare

def prepare
  @output = _prepare_output
end

def render(scope=nil, locals=nil)

Static templates always return the prepared output.
def render(scope=nil, locals=nil)
  @output
end

def set_compiled_method_cache

Do nothing, since compiled method cache is not used.
def set_compiled_method_cache
end