Sha256: 6f7ae6d12f5c23f14bc8e1aacc82cae8ffea5f370a5208e0d6fde9beab9630d1
Contents?: true
Size: 284 Bytes
Versions: 75
Compression:
Stored size: 284 Bytes
Contents
module Coco # Use `Content` as a helper to render content passed to a slot without adding any tags. class Content < ViewComponent::Base def initialize(body = nil) @body = body end def call content.presence&.html_safe || @body&.html_safe end end end
Version data entries
75 entries across 75 versions & 1 rubygems