class Tilt::Template

def precompiled_template(locals)

allows it.
scopes, and support for template compilation when the scope object
Template guarantees correct file/line handling, locals support, custom
or the #precompiled method be overridden. When defined, the base
default Template#evaluate implementation requires either this method
A string containing the (Ruby) source code for the template. The
def precompiled_template(locals)
  raise NotImplementedError
end