Sha256: f4754fd17ead29491142f39f1864123e243550b46461e2ef112347d7dc7d8dab

Contents?: true

Size: 219 Bytes

Versions: 4

Compression:

Stored size: 219 Bytes

Contents

module Mosaico
  class TemplatesController < ::Mosaico::ApplicationController
    def show
      template = Mosaico.find_template(params[:template_name])
      render inline: template.template_content
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mosaico-2.0.0 app/controllers/mosaico/templates_controller.rb
mosaico-1.1.1 app/controllers/mosaico/templates_controller.rb
mosaico-1.1.0 app/controllers/mosaico/templates_controller.rb
mosaico-1.0.2 app/controllers/mosaico/templates_controller.rb