Sha256: 5f749be39db1d89444c3d24598b8f0abaccd6ecda3cf383a40eb74b9ce2eb124
Contents?: true
Size: 391 Bytes
Versions: 12
Compression:
Stored size: 391 Bytes
Contents
require 'faml/filter_compilers/base' module Faml module FilterCompilers class Css < Base def compile(ast) temple = [:multi, [:static, "\n"], [:newline]] compile_texts(temple, ast.lineno, ast.texts, tab_width: 2) temple << [:static, "\n"] [:haml, :tag, 'style', false, [:html, :attrs], temple] end end register(:css, Css) end end
Version data entries
12 entries across 12 versions & 1 rubygems