Sha256: 26b25c3029057010d584faca1988601520d1be6bf2a6e50764e3d45f50c172ff
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
# frozen_string_literal: true module Cosensee class TailwindRenderer IconBracket = Data.define(:content, :project) do include HtmlEncodable def render page = project.find_page_by_title(content.icon_name) icon_src = page&.first_image&.src %(<img src="#{icon_src}" loading="lazy" alt="icon" class="inline-block h-5 w-5 align-middle">) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cosensee-0.8.0 | lib/cosensee/tailwind_renderer/icon_bracket.rb |