class Hippo::API::Handlers::Print
Public Class Methods
getter()
click to toggle source
# File lib/hippo/api/handlers/print.rb, line 4 def self.getter lambda do template_klass = Hippo::Templates::Latex.for_identifier(params['template_id']) status 404 and return if not template_klass form = template_klass.new(params['model_id']) content_type 'application/pdf' form.as_pdf end end