Module: Locomotive::Concerns::ContentType::PublicSubmissionTitleTemplate
- Extended by:
- ActiveSupport::Concern
- Included in:
- Locomotive::ContentType
- Defined in:
- app/models/locomotive/concerns/content_type/public_submission_title_template.rb
Instance Method Summary collapse
Instance Method Details
#public_submission_title(entry, options) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/models/locomotive/concerns/content_type/public_submission_title_template.rb', line 12 def public_submission_title(entry, ) template = ::Liquid::Template.parse(self.public_submission_title_template, {}) assigns = { 'site' => self.site, 'entry' => entry }.merge() registers = { site: self.site, services: Locomotive::Steam::Services.build_instance } template.render(::Liquid::Context.new({}, assigns, registers)) end |