Class: Combinator

Inherits:
Object
  • Object
show all
Defined in:
lib/combinator.rb

Overview

Combinator class

Constant Summary collapse

INDENTATION =
'    '

Instance Method Summary collapse

Instance Method Details

#combine(main, modules, beautify: true) ⇒ Object

Combines the given platte modules



12
13
14
15
16
17
18
19
20
# File 'lib/combinator.rb', line 12

def combine main, modules, beautify: true
  html = Mustache.render(
    main.template,
    module_contents: generate_body(modules),
    stylesheets: generate_stylesheets(modules),
  )

  postprocess(html, beautify: beautify)
end