Sha256: 04131c1580b8a85cdebb1167aa2734045fb79c1989cfa07d684faa0b6be65597
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 Bytes
Contents
# frozen_string_literal: true module Cosensee class TailwindRenderer Link = Data.define(:content, :project) do include HtmlEncodable def render link = content.content %(<span><a href="#{escape_html(link)}" class="text-blue-500 hover:text-blue-700">#{escape_html(link)}</a></span>) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cosensee-0.8.0 | lib/cosensee/tailwind_renderer/link.rb |