Sha256: c51fa9681801deeae8e6d05c7d3a6b0ad4ccf353eb024153769ccc48c379a3ec

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

require 'json'

module Cosensee
  class TailwindRenderer
    Quote = Data.define(:content, :project) do
      def render
        code = Cosensee::TailwindRenderer.new(content: content.content, project:).render
        %(<blockquote class="border-l-4 border-gray-300 bg-gray-100 px-4 text-gray-800">#{code}</blockquote>)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cosensee-0.8.0 lib/cosensee/tailwind_renderer/quote.rb