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