Sha256: 70359332ecb391d5e7425cf7f70aa197ce91ead6c8972702eee80076f727bc9a
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
# frozen_string_literal: true require_relative 'tilt_base' module Faml module FilterCompilers class Coffee < TiltBase def compile(ast) temple = [:multi, [:static, "\n"], [:newline]] compile_with_tilt(temple, 'coffee', ast, indent_width: 2) temple << [:static, "\n"] [:haml, :tag, 'script', false, [:html, :attrs], [:html, :js, temple]] end end register(:coffee, Coffee) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faml-0.8.1 | lib/faml/filter_compilers/coffee.rb |
faml-0.8.0 | lib/faml/filter_compilers/coffee.rb |