Sha256: 63db92745bbc98a1fae8b7251c302c3c2a413bfc05aa4cfcad8255779fcbe43d
Contents?: true
Size: 719 Bytes
Versions: 22
Compression:
Stored size: 719 Bytes
Contents
module Mack module Rendering # :nodoc: module Engine # :nodoc: # Engines are used to transform a IO, using a supplied binding to a String. # # The method 'render' needs to be implemented as render(io, binding) in all subclasses. class Base # The Mack::Rendering::ViewTemplate object to be used with this engine. attr_reader :view_template def initialize(view_template) @view_template = view_template end # See Mack::Rendering::ViewTemplate content_for for more details. def capture(*args, &block) yield end needs_method :render end # Base end # Engines end # Rendering end # Mack
Version data entries
22 entries across 22 versions & 1 rubygems