Class: Ramaze::Template::Sass
- Defined in:
- lib/ramaze/template/sass.rb
Overview
Is responsible for compiling a template using the Sass CSS templating engine. Can be found at: haml.hamptoncatlin.com/
Class Method Summary collapse
-
.compile(action, template) ⇒ Object
Instantiates Sass::Engine with the template and sass_options trait from the controller.
-
.transform(action) ⇒ Object
Transform via Sass templating engine.
Methods inherited from Template
caching_compile, reaction_or_file, render_method, result_and_file, wrap_compile
Methods included from Helper::Methods
extend_object, #helper, included
Class Method Details
.compile(action, template) ⇒ Object
Instantiates Sass::Engine with the template and sass_options trait from the controller.
31 32 33 |
# File 'lib/ramaze/template/sass.rb', line 31 def compile(action, template) ::Sass::Engine.new(template, action.controller.trait[:sass_options] || {}) end |