Module: Strings2conf

Defined in:
lib/strings2conf.rb,
lib/strings2conf/version.rb

Defined Under Namespace

Classes: Util

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.convert(json) ⇒ Object



47
48
49
50
51
# File 'lib/strings2conf.rb', line 47

def self.convert(json)
  @data         = JSON.parse json
  template_path = File.dirname(File.expand_path(__FILE__)) + '/templates/confluence.html.erb'
  ERB.new(File.read(template_path), nil, '-').result(binding)
end