Sha256: cc9107519b73a22ec6dc42b31e015eacc2a84e2ee0c265bdf11b5a623e570ddc
Contents?: true
Size: 603 Bytes
Versions: 26
Compression:
Stored size: 603 Bytes
Contents
module Locomotive module Concerns module ContentType module PublicSubmissionTitleTemplate extend ActiveSupport::Concern included do field :public_submission_title_template end def public_submission_title(entry, options) template = ::Liquid::Template.parse(self.public_submission_title_template, {}) assigns = { 'site' => self.site, 'entry' => entry }.merge(options) registers = { site: self.site } template.render(::Liquid::Context.new({}, assigns, registers)) end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems