Sha256: a93e12062b7b0ba3b6869f4c81e2565815160b95e9cabe808cff77b6bf6515b2
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
# frozen_string_literal: true module Views module Comments class Comment < Phlex::View def initialize(name:, body:) @name = name @body = body end def template(&block) div { span { @name } span { @body } yield_content(&block) render(::ReactionComponent.new(emoji: "hamburger")) do p { "Emoji reaction for a comment from #{@name} with body #{@body}" } end } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phlex-0.4.0 | fixtures/dummy/app/views/comments/comment.rb |