Sha256: 610b613e9477f7a266129ad5d352e62a7f00c2f404d3ea7d7215f3c7bace24a1
Contents?: true
Size: 462 Bytes
Versions: 14
Compression:
Stored size: 462 Bytes
Contents
module Rbexy module Nodes class Raw < AbstractNode attr_reader :content, :template OUTPUT = "@output_buffer.safe_concat('%s'.freeze);" EXPR_STRING = "'%s'.html_safe.freeze" def initialize(content, template: OUTPUT) @content = content @template = template end def compile template % content end def merge(other_raw) content << other_raw.content end end end end
Version data entries
14 entries across 14 versions & 1 rubygems