Module: Wavy
- Defined in:
- lib/wavy.rb,
lib/wavy/core.rb,
lib/wavy/nodes.rb,
lib/wavy/utils.rb,
lib/wavy/models.rb,
lib/wavy/parsers.rb,
lib/wavy/version.rb,
lib/wavy/nodes/mixin.rb,
lib/wavy/nodes/import.rb,
lib/wavy/models/mixins.rb,
lib/wavy/parsers/mixin.rb,
lib/wavy/utils/filesys.rb,
lib/wavy/models/imports.rb,
lib/wavy/parsers/import.rb,
lib/wavy/models/template.rb
Defined Under Namespace
Modules: Models, Nodes, Parsers, Utils Classes: Core, Version
Constant Summary collapse
- FILE_SUFFIX =
File suffix
".wavy"- FILE_IMPORTER =
Find and read files
Wavy::Utils::FileSys
- CHAR_DEFINE_HTML =
The character to parse a HTML element
"~"- VERSION =
'0.0.5'
Class Method Summary collapse
-
.compile(config, view, save = false) ⇒ Object
Compile specified view(s).
-
.execute(args) ⇒ Object
Execute compile method via bash.
Class Method Details
.compile(config, view, save = false) ⇒ Object
Compile specified view(s)
15 16 17 |
# File 'lib/wavy.rb', line 15 def self.compile(config, view, save = false) core = Core.new(config, view, save).compile end |
.execute(args) ⇒ Object
Execute compile method via bash
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/wavy.rb', line 22 def self.execute(args) begin if args[0] case args[0] when "--help", "-h" puts "#{WAVY_HELP_OUTPUT}" when "--version", "-v" puts Wavy::Version.get else config = args[0] if args[1] view = args[1] else raise 'Missing template.' end if !args[2] save = false else save = args[2] end compile(config, view, save) end else raise 'Missing main configuration file.' end rescue Exception => e puts e. abort end end |