Sha256: af6641032d07b590cdbd3448c7466afb327639d58f04ea92a813e4447a6e91c9
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
# frozen_string_literal: true module AsyncPartial class HamlArrayBuffer < Array def html_safe map {|v| AsyncPartial::AsyncResult === v ? v.value : v}.join.html_safe end end module HamlArrayBufferizer def initialize(*) super; @buffer = AsyncPartial::HamlArrayBuffer.new end end Haml::Buffer.prepend HamlArrayBufferizer end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
async_partial-0.3.0 | lib/async_partial/handlers/haml.rb |