Sha256: 739e7bdadbf319eab88912e8f67b48caf077618abe6e9b44cb6374bfaab12b74
Contents?: true
Size: 408 Bytes
Versions: 9
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
9 entries across 9 versions & 1 rubygems