Sha256: 74a8c68f1e712be154ad86b477a0a1b2e0db0b29d230070aff05ddec814ad2ac

Contents?: true

Size: 216 Bytes

Versions: 3

Compression:

Stored size: 216 Bytes

Contents

# frozen_string_literal: true

module Views
	class Card < Phlex::View
		def template(&block)
			article class: "drop-shadow p-5 rounded", &block
		end

		def title(text)
			h3 text, class: "font-bold"
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phlex-0.3.2 fixtures/dummy/app/views/card.rb
phlex-0.3.1 fixtures/dummy/app/views/card.rb
phlex-0.3.0 fixtures/dummy/app/views/card.rb