Sha256: 42dac33ae11c3fe6ce4693497f800033a7f0119466ddf338c80d09a6e63f8a4d
Contents?: true
Size: 695 Bytes
Versions: 3
Compression:
Stored size: 695 Bytes
Contents
module Verku class Exporter class HTML < Base def export! locals = config.merge({ "contents" => content }) locals['copyright'].gsub!("(C)", "©") output = render_template(root_dir.join("_templates/html/layout.erb"), locals) File.open(root_dir.join(html_file), 'w').write(output) true rescue Exception => error handle_error(error) false end private def content source_list.map do |file| d = File.read_content(file) raise d.inspect PandocRuby.markdown(read_content(file)[0]).to_html.sectionize end.join("\n\n") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
verku-0.16.2 | lib/verku/exporter/html.rb |
verku-0.16.1 | lib/verku/exporter/html.rb |
verku-0.16.0 | lib/verku/exporter/html.rb |