module RenderTable::Options

Public Class Methods

generate(table, template, record, index) click to toggle source
# File lib/render_table/options.rb, line 2
def self.generate(table, template, record, index)
  template = File.read(template) if File.exist? template
  ERB.new(template, 0, '%<>').result(binding)
end