Sha256: 77c4f98e666ae2c1c6b2f764ffa37fb47047640bde713a5f97460a51ce1ff421

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

require 'crystal/http'
require 'crystal/template'

[
  'flash',
  
  'view_helpers/basic_html_helper',  
  'view_helpers/form_helper',
  'view_helpers/model_helper',
  'view_helpers/javascript_helper',
  'view_helpers/view_url_helper',
  
  'controller_helpers/flash_helper',
  'controller_helpers/controller_url_helper',
  
  'processors/scoped_params',
  'processors/prepare_flash'
].each{|f| require "crystal/html/#{f}"}

# Flash
crystal.register :flash, :scope => :cycle, :depends_on => :environment do
  workspace = crystal[:workspace]
  workspace.params.must_be.defined  
  Crystal::Flash.new workspace.params.format
end

# Initialization
Crystal::Config::DEFAULTS['remote_link_formats'] = ['js', 'json']

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
crystal-0.0.13 lib/crystal/html.rb
crystal-0.0.12 lib/crystal/html.rb
crystal_ext-0.0.11 lib/crystal/html.rb