Configuration Settings

Default Configuration

Following is a configuration block with all of the supported settings and their defaults:

Comatose.configure do |config|

  config.admin_title          = 'Comatose'
  config.admin_includes       = []
  config.admin_helpers        = []
  config.admin_sub_title      = 'The Micro CMS'
  config.content_type         = 'utf-8'
  config.default_filter       = 'Textile'
  config.default_processor    = :liquid
  config.default_tree_level   = 2
  config.disable_caching      = false
  config.hidden_meta_fields   = []
  config.helpers              = []
  config.includes             = []

  # These are 'blockable' settings
  config.authorization        = Proc.new { true }
  config.admin_authorization  = Proc.new { true }
  config.admin_get_author     = Proc.new { request.env['REMOTE_ADDR'] }
  config.admin_get_root_page  = Proc.new { Comatose::Page.root }
  config.after_setup          = Proc.new { true }

end

« Advanced Features