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