Sha256: c53656af900a8d53e68dfdbe60aa4bde85bf927cb799f66bbe4951edc779cff5
Contents?: true
Size: 507 Bytes
Versions: 3
Compression:
Stored size: 507 Bytes
Contents
require 'erubis' module FacturaePrint module Renderers class HTMLRenderer def initialize(template, invoice) @template = template @invoice = invoice end def render eruby = Erubis::Eruby.new(@template) __context = Erubis::Context.new class << __context include FacturaePrint::Renderers::HTMLRendererHelpers end __context[:invoice] = @invoice eruby.evaluate(__context) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems