/usr/lib/ruby/vendor_ruby/slim/template.rb is in ruby-slim 2.0.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | module Slim
# Tilt template implementation for Slim
# @api public
Template = Temple::Templates::Tilt(Slim::Engine, :register_as => :slim)
if defined?(::ActionView)
# Rails template implementation for Slim
# @api public
RailsTemplate = Temple::Templates::Rails(Slim::Engine,
:register_as => :slim,
# Use rails-specific generator. This is necessary
# to support block capturing and streaming.
:generator => Temple::Generators::RailsOutputBuffer,
# Disable the internal slim capturing.
# Rails takes care of the capturing by itself.
:disable_capture => true,
:streaming => defined?(::Fiber))
end
end
|