Sha256: 91249be802a45b4af32b316e8ffb813dc3b80810183f49ba09c65099a6bc1cf0

Contents?: true

Size: 651 Bytes

Versions: 23

Compression:

Stored size: 651 Bytes

Contents

module Plate
  module Engine
    # All engines that have been registered for markup templating
    def asset_engines
      @engines[:assets].dup
    end
    
    # Register a new asset engine.
    def register_asset_engine(extension, klass)
      @engines[:assets] ||= {}
      @engines[:assets][extension] = klass
    end
    
    # Register a new templating engine.
    def register_template_engine(extension, klass)
      @engines[:templates] ||= {}
      @engines[:templates][extension] = klass
    end
    
    # All engines that have been registered for markup templating
    def template_engines
      @engines[:templates].dup
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
plate-0.7.8 lib/plate/engine.rb
plate-0.7.7 lib/plate/engine.rb
plate-0.7.6 lib/plate/engine.rb
plate-0.7.5 lib/plate/engine.rb
plate-0.7.4 lib/plate/engine.rb
plate-0.7.3 lib/plate/engine.rb
plate-0.7.2 lib/plate/engine.rb
plate-0.7.1 lib/plate/engine.rb
plate-0.7.0 lib/plate/engine.rb
plate-0.7.0.pre5 lib/plate/engine.rb
plate-0.7.0.pre4 lib/plate/engine.rb
plate-0.7.0.pre3 lib/plate/engine.rb
plate-0.7.0.pre2 lib/plate/engine.rb
plate-0.7.0.pre lib/plate/engine.rb
plate-0.6.3 lib/plate/engine.rb
plate-0.6.2 lib/plate/engine.rb
plate-0.6.1 lib/plate/engine.rb
plate-0.6.0 lib/plate/engine.rb
plate-0.5.4 lib/plate/engine.rb
plate-0.5.3 lib/plate/engine.rb