Sha256: 1d0a79f22e0d98f5302393be54ff1eb037dcb4a9e5ca0e299b55b0363c01b6d7
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
require 'fast_haml/filter_compilers/base' module FastHaml module FilterCompilers class Javascript < Base def compile(texts) temple = [:multi, [:static, "\n"], [:newline]] compile_texts(temple, texts, tab_width: 2) temple << [:static, "\n"] [:haml, :tag, 'script', false, [:html, :attrs], [:html, :js, temple]] end end register(:javascript, Javascript) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fast_haml-0.1.10 | lib/fast_haml/filter_compilers/javascript.rb |