class Tilt::Template
def compiled_path=(path)
is recommended to use the :compiled_path template option
template is compiled during initialization in that case. It
this after the template is created has no effect, since the
:scope_class template option, and using fixed_locals, calling
has affect for future template compilations. When using the
:compiled_path template option. Note that this only
Set the prefix to use for compiled paths, similar to using the
def compiled_path=(path) if path # Use expanded paths when loading, since that is helpful # for coverage. Remove any .rb suffix, since that will # be added back later. path = File.expand_path(path.sub(/\.rb\z/i, '')) end @compiled_path = path end