Sha256: 89c3ba2201559f66fd05ffdc33ef2d3040f4dd705127722e9b1570a8551c3b43
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. module Ramaze # This is a container module for wrappers of templating engines and handles # lazy requiring of needed engines. module View extend Innate::View def self.get(*args) Innate::View.get(*args) end # Combine Kernel#autoload and Innate::View::register def self.auto_register(name, *exts) autoload(name, "ramaze/view/#{name}".downcase) register("Ramaze::View::#{name}", *exts) end # TODO: # * markaby - though we should advertise remarkably instead # * XSLT - this one is just crazy, someone up for the task? # Engines provided by Innate are: # ERB, Etanni, None auto_register :Erubis, :erubis, :rhtml auto_register :Ezamar, :zmr auto_register :Haml, :haml auto_register :Liquid, :liquid auto_register :Maruku, :mkd, :md auto_register :Nagoro, :nag auto_register :RedCloth, :redcloth auto_register :Sass, :sass auto_register :Tenjin, :rbhtml, :tenjin auto_register :Remarkably, :rem auto_register :Tagz, :rb, :tagz end end module Innate module View include Ramaze::View end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
manveru-ramaze-2009.04.22 | lib/ramaze/view.rb |
manveru-ramaze-2009.04 | lib/ramaze/view.rb |
ramaze-2009.04 | lib/ramaze/view.rb |