Sha256: aa2827c76febd6dee9809e507416740c00bb1460a39c4a982660a9cd401e56a6

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

module MailyHerald
  module TemplateRenderer
    def self.included(base)
      base.send :include, MailyHerald::TemplateRenderer::InstanceMethods
    end

    module InstanceMethods
      protected 

      def perform_template_rendering drop, template
        template = Liquid::Template.parse(template)
        template.render! drop
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
maily_herald-0.9.4 lib/maily_herald/template_renderer.rb
maily_herald-0.9.3 lib/maily_herald/template_renderer.rb
maily_herald-0.9.2 lib/maily_herald/template_renderer.rb
maily_herald-0.9.1 lib/maily_herald/template_renderer.rb
maily_herald-0.8.0 lib/maily_herald/template_renderer.rb