Sha256: c7f5399325e9f119b6f56df38e829fe017e3815fd44c7363f742809f572440e7

Contents?: true

Size: 334 Bytes

Versions: 11

Compression:

Stored size: 334 Bytes

Contents

module Mack
  module Rendering
    # Used when someone calls render(:public => "index")
    # This renders a file from the public directory.
    class Public < Base
      
      def render
        render_file(options[:public], {:dir => MACK_PUBLIC, :ext => ".html", :layout => false}.merge(options))
      end
      
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mack-0.2.0.1 lib/rendering/classes/public.rb
mack-0.2.0 lib/rendering/classes/public.rb
mack-0.4.0 lib/rendering/classes/public.rb
mack-0.4.1 lib/rendering/classes/public.rb
mack-0.4.0.1 lib/rendering/classes/public.rb
mack-0.3.0 lib/rendering/classes/public.rb
mack-0.4.2.1 lib/rendering/classes/public.rb
mack-0.4.7 lib/rendering/classes/public.rb
mack-0.4.5 lib/rendering/classes/public.rb
mack-0.4.6 lib/rendering/classes/public.rb
mack-0.4.2 lib/rendering/classes/public.rb