Class: Malt::Format::Sass

Inherits:
Abstract show all
Defined in:
lib/malt/formats/sass.rb

Overview

Sass Format

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
28
# File 'lib/malt/formats/sass.rb', line 25

def css(*data, &content)
  render_into(:css, *data, &content)
  #render_engine.render(:format=>:css, :text=>text, :file=>file, :data=>data, :type=>type, &yld)
end

#sassObject


15
16
17
# File 'lib/malt/formats/sass.rb', line 15

def sass(*)
  text
end

#to_css(*data, &content) ⇒ Object


31
32
33
34
# File 'lib/malt/formats/sass.rb', line 31

def to_css(*data, &content)
  result = css(*data, &content)
  CSS.new(:text=>result, :file=>refile(:css), :type=>:css)
end

#to_sassObject


20
21
22
# File 'lib/malt/formats/sass.rb', line 20

def to_sass(*)
  self
end