Sha256: e41720bd349fe97210610144092ecb0f4aa3b20d36ab2f1dea63a5c3e9995dad
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
# frozen_string_literal: true require 'json' module Cosensee class TailwindRenderer CommandLine = Data.define(:content, :project) do include HtmlEncodable def render code = content.content prompt = content.prompt %(<code class="bg-gray-100 text-gray-800 px-4"><span class="text-red-400">#{prompt}</span>#{escape_html(code)}</code>) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cosensee-0.8.0 | lib/cosensee/tailwind_renderer/command_line.rb |