Sha256: d938bc87d7fb0af5969771c599cfcfb9b779f4fcc799b7a75e8c1cdc75a6f1ec

Contents?: true

Size: 843 Bytes

Versions: 1

Compression:

Stored size: 843 Bytes

Contents

require 'humpyard' unless defined? Humpyard

Humpyard.configure do |config|
  config.www_prefix = '<%= options[:www_prefix] %>'
  config.admin_prefix = '<%= options[:admin_prefix] %>'
  config.table_name_prefix = '<%= options[:table_name_prefix] %>'
  config.locales = [:<%= options[:locales] * ', :' %>]
 
  # Skeleton generator presets
  config.compass_format = '<%= options[:compass_format] %>'
  config.js_framework = '<%= options[:js_framework] %>'
  config.users_framework = '<%= options[:users_framework] %>'
 
  # Template config
  config.templates = {
    <%= options[:templates].map{|template| ":#{template} => {:yields => [:#{(Humpyard::config.templates[template] ? Humpyard::config.templates[template][:yields] : ['sidebar']) * ', :'}]}"} * ",\n    " %>
  }
  config.default_template = :<%= options[:default_template] %>
      
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humpyard-0.0.1 lib/generators/humpyard/skeleton/templates/initializers/humpyard.rb