Sha256: 166adf4aab807773a7509d5ef8d0c1c659323594a0a8715bc14fd3397d7c233d

Contents?: true

Size: 1.12 KB

Versions: 14

Compression:

Stored size: 1.12 KB

Contents

# encoding: utf-8

require "rango/settings"

module Rango
  module Settings
    class Framework < Settings
      # @since 0.0.1
      # @return [String] Path to your +media+ directory.
      hattribute :media_root, lambda { File.join(Project.root, "media") }

      # @since 0.0.2
      # @return [String] rango-project.org/media/javascripts/mootools-core.js
      hattribute :media_prefix,  String.new#"/media"

      # @since 0.0.1
      # @return [Array[String]] Array with paths where Rango will trying to find templates.
      hattribute :template_dirs, ["templates"]

      # @since 0.0.2
      hattribute :mime_formats, Array.new

      # @since 0.0.2
      # Just informative for plugins, it doesn't really do anything
      hattribute :orm

      # @since 0.0.2
      # Project.settings.erubis.pattern
      # hattribute :erubis, lambda { self.settings_module(:erubis) }
      def erubis
        self.settings_module(:erubis)
      end

      # @since 0.0.2
      # Project.settings.haml.format
      # hattribute :haml, lambda { self.settings_module(:haml) }
      def haml
        self.settings_module(:haml)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rango-0.1.1.2.11 lib/rango/settings/framework.rb
rango-0.1.1.2.10 lib/rango/settings/framework.rb
rango-0.1.1.2.9 lib/rango/settings/framework.rb
rango-0.1.1.2.8 lib/rango/settings/framework.rb
rango-0.1.1.2.7 lib/rango/settings/framework.rb
rango-0.1.1.2.6 lib/rango/settings/framework.rb
rango-0.1.1.2.5 lib/rango/settings/framework.rb
rango-0.1.1.2.4 lib/rango/settings/framework.rb
rango-0.1.1.2.3 lib/rango/settings/framework.rb
rango-0.1.1.2.2 lib/rango/settings/framework.rb
rango-0.1.1.2.1 lib/rango/settings/framework.rb
rango-0.1.1.2 lib/rango/settings/framework.rb
rango-0.1.1.1 lib/rango/settings/framework.rb
rango-0.1.1 lib/rango/settings/framework.rb