Sha256: 0456a60e7507d3ad6c852a90aaf6c290e7c326af9d18f3086749178c29767668
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true require_relative '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faml-0.8.1 | lib/faml/filter_compilers/css.rb |
faml-0.8.0 | lib/faml/filter_compilers/css.rb |