Sha256: d7e47b1358dc68a8c1c2a4d7ff9fe2f271fa51953076d29d0eeb669b8e92bc31

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

module Cosensee
  class TailwindRenderer
    Link = Data.define(:content) 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.6.0 lib/cosensee/tailwind_renderer/link.rb