Sha256: ad7d6e7c8d5ddcd7fc24d8e4a04274b5cf64fa594ec659e706f0dc5788d0c11f

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

module Pakyow
  module Configuration
    class Presenter
      class << self
        attr_accessor :view_caching, :javascripts, :stylesheets, :view_dir, :default_view
        
        # Location of javascripts
        def javascripts
          @javascripts || '/javascripts'
        end
        
        # Location of stylesheets
        def stylesheets
          @stylesheets || '/stylesheets'
        end

        def view_dir
          @view_dir || "#{Configuration::Base.app.root}/app/views"
        end
        
        def view_caching
          @view_caching || false
        end

        def default_view
          @default_view || "pakyow.html"
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-presenter-0.7.2 pakyow-presenter/lib/presenter/configuration/presenter.rb
pakyow-presenter-0.7.1 pakyow-presenter/lib/presenter/configuration/presenter.rb
pakyow-presenter-0.7.0 pakyow-presenter/lib/presenter/configuration/presenter.rb
pakyow-presenter-0.6.3.1 pakyow-presenter/lib/presenter/configuration/presenter.rb
pakyow-presenter-0.6.1 pakyow-presenter/lib/presenter/configuration/presenter.rb