In Files
Parent
Methods
Information
Class Index
![show/hide quicksearch [+]](../../assets/icon/find.png)
- Malt
- Malt::Engine
- Malt::Engine::Abstract
- Malt::Engine::BlueCloth
- Malt::Engine::Builder
- Malt::Engine::Erb
- Malt::Engine::Erector
- Malt::Engine::Erubis
- Malt::Engine::Haml
- Malt::Engine::Kramdown
- Malt::Engine::Less
- Malt::Engine::Liquid
- Malt::Engine::Markaby
- Malt::Engine::Mustache
- Malt::Engine::RDiscount
- Malt::Engine::RDoc
- Malt::Engine::Radius
- Malt::Engine::Radius::context;
- Malt::Engine::RagTag
- Malt::Engine::RedCloth
- Malt::Engine::Ruby
- Malt::Engine::Sass
- Malt::Engine::Tenjin
- Malt::Format
- Malt::Format::Abstract
- Malt::Format::AbstractTemplate
- Malt::Format::Builder
- Malt::Format::CSS
- Malt::Format::Erb
- Malt::Format::Erector
- Malt::Format::HTML
- Malt::Format::Haml
- Malt::Format::LESS
- Malt::Format::Latex
- Malt::Format::Liquid
- Malt::Format::Markaby
- Malt::Format::Markdown
- Malt::Format::Mustache
- Malt::Format::PDF
- Malt::Format::RBHTML
- Malt::Format::RDoc
- Malt::Format::RHTML
- Malt::Format::Radius
- Malt::Format::RagTag
- Malt::Format::Ruby
- Malt::Format::SCSS
- Malt::Format::Sass
- Malt::Format::Tenjin
- Malt::Format::Text
- Malt::Format::Textile
- Malt::Format::UnsupportedConversion
- Malt::Format::XML
- Malt::Format::YAML
- Malt::Kernel
- Malt::Machine
- Malt::Markup
- Malt::NoEngineError
- Malt::Template
- Hash
- OpenStruct
Public Instance Methods
intermediate(params)
click to toggle source
# File lib/malt/engines/sass.rb, line 27 27: def intermediate(params) 28: text = params[:text] 29: file = params[:file] 30: type = params[:type] 31: ::Sass::Engine.new(text, :filename=>file, :syntax=>type) 32: end
render(params, &yld)
click to toggle source
# File lib/malt/engines/sass.rb, line 12 12: def render(params, &yld) 13: text = params[:text] 14: file = params[:file] 15: into = params[:to] 16: 17: case into 18: when :css, nil 19: engine = intermediate(params) 20: engine.render 21: else 22: super(params, &yld) 23: end 24: end
Private Instance Methods
initialize_engine()
click to toggle source
Load Sass library if not already loaded.
# File lib/malt/engines/sass.rb, line 37 37: def initialize_engine 38: return if defined? ::Sass::Engine 39: require_library 'sass' 40: end
Disabled; run with --debug to generate this.