Sha256: 53b242c05ca23af11557fef0533f3c9903513e24b5fc03ac21f8cef20f3d0f61

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

require 'erb'

# Module that creates a link list and generates an html representation
module SycLink

  # Methods to export data into specific formats
  module Exporter

    # Creates an html file based on an erb template
    def to_html(template)
      renderer = ERB.new(template)
      renderer.result(binding)
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
syclink-0.0.2 lib/syclink/exporter.rb
syclink-0.0.1 lib/syclink/exporter.rb