module Strings2conf

Constants

VERSION

Public Class Methods

convert(json) click to toggle source
# 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