Sha256: 5253fe7c57012a389cb5f68c509415b88b4ea2d584dc7e9946d324a9f4012863
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
require 'fast_haml/filter_compilers/base' module FastHaml module FilterCompilers class Escaped < Base include Temple::Utils def compile(texts) temple = [:multi, [:newline]] compile_texts(temple, texts) escape_code = Temple::Filters::Escapable.new.instance_variable_get(:@escape_code) sym = unique_name [:multi, [:capture, sym, temple], [:dynamic, escape_code % sym], ] end end register(:escaped, Escaped) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fast_haml-0.1.9 | lib/fast_haml/filter_compilers/escaped.rb |