Module: Flowcation

Defined in:
lib/flowcation.rb,
lib/flowcation/block.rb,
lib/flowcation/assets.rb,
lib/flowcation/layout.rb,
lib/flowcation/render.rb,
lib/flowcation/partial.rb,
lib/flowcation/runtime.rb,
lib/flowcation/version.rb,
lib/flowcation/registry.rb,
lib/flowcation/settings.rb,
lib/flowcation/template.rb,
lib/flowcation/callbacks.rb,
lib/flowcation/file_writer.rb,
lib/flowcation/substitution.rb,
lib/flowcation/substitutions.rb,
lib/flowcation/overwrite_exception.rb,
lib/flowcation/block_not_found_exception.rb,
lib/flowcation/substitution_not_found_exception.rb

Defined Under Namespace

Modules: Callbacks, FileWriter, Registry, Render, Substitutions Classes: Assets, Block, BlockNotFoundException, Layout, OverwriteException, Partial, Runtime, Settings, Substitution, SubstitutionNotFoundException, Template

Constant Summary collapse

DEFAULT_GENERATED_TEXT =
"GENERATED_BY_FLOWCATION"
DEFAULT_COMMENT =
"<!-- ::comment:: -->"
VERSION =
"0.2.3"

Class Method Summary collapse

Class Method Details

.generate(config) ⇒ Object



28
29
30
31
32
33
34
35
# File 'lib/flowcation.rb', line 28

def self.generate(config)
  Flowcation::Settings.from_config(config['flowcation'])
  Flowcation::Assets.from_config(config['assets'])

  Flowcation::Runtime.register_layouts_from_config(config['layouts'])
  Flowcation::Runtime.register_templates_from_config(config['templates'])
  Flowcation::Runtime.register_partial_from_config(config['partials'])
end