Class: Malt::Format::SCSS
Overview
SCSS Format
This uses the same engine as Sass.
Instance Attribute Summary
Attributes inherited from Abstract
#options
Instance Method Summary
collapse
Methods inherited from Abstract
#engine, engine, extensions, #extensions, #file, file_extension, #file_read, #file_type, #parse_type_from_data, #refile, register, #render, #render_into, #rendering_parameters, #scope_vs_data, #subtype, #text, #to, #to_default, #to_s, #type, #with, #with!
Instance Method Details
#css(*data, &content) ⇒ Object
25
26
27
|
# File 'lib/malt/formats/scss.rb', line 25
def css(*data, &content)
render_into(:css, *data, &content)
end
|
15
16
17
|
# File 'lib/malt/formats/scss.rb', line 15
def scss(*)
text
end
|
#to_css(*data, &content) ⇒ Object
30
31
32
33
|
# File 'lib/malt/formats/scss.rb', line 30
def to_css(*data, &content)
result = css(*data, &content)
CSS.new(:text=>result, :file=>refile(:css), :type=>:css)
end
|
20
21
22
|
# File 'lib/malt/formats/scss.rb', line 20
def to_scss(*)
self
end
|