module Dominate

Constants

VERSION

Attributes

config[RW]
reset_config[RW]

Public Instance Methods

HTML(html, instance = false, options = {}) click to toggle source
# File lib/dominate.rb, line 51
def HTML html, instance = false, options = {}
  Dom.new html, instance, options
end
reset_config!() click to toggle source

Resets the configuration to the default (empty hash)

# File lib/dominate.rb, line 30
def reset_config!
  @config = OpenStruct.new({
    parse_dom:   false,
    layout:      'app',
    layout_path: './views/layouts',
    view_path:   './views',
    widget_path: './widgets',
    widget_url:  '/widgets',
    widgets:     {},
    assets: OpenStruct.new({
      js: {},
      css: {}
    }),
    asset_url:        '/assets',
    asset_path:       './assets',
    asset_js_folder:  'js',
    asset_css_folder: 'css',
    assets_compiled:  false
  })
end
setup() { |config| ... } click to toggle source
# File lib/dominate.rb, line 21
def setup
  yield config
end