Sha256: 0be45128262e0a43fa4f6888f79425baa82d5e83e2967be98c04f7db6614a055
Contents?: true
Size: 408 Bytes
Versions: 9
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true require "core" require "hanami/view" module Milestoner module Views module Scopes # The content specific behavior for partials. class Content < Hanami::View::Scope def content = String locals.fetch(:content, Core::EMPTY_STRING) def call = content.empty? ? render("milestones/none") : render("milestones/content") end end end end
Version data entries
9 entries across 9 versions & 1 rubygems