Class: Haml::Filters::SassRailsTemplate

### Home Classes Methods

### In Files

- lib/haml/sass_rails_filter.rb

### Parent

Sass::Rails::SassTemplate

### Methods

- #render
- #sass_options

### Class/Module Index

Quicksearch

- Haml
- Haml::Buffer
- Haml::Compiler
- Haml::Engine
- Haml::Error
- Haml::ErubisTemplateHandler
- Haml::Exec
- Haml::Exec::Generic
- Haml::Exec::Haml
- Haml::Filters
- Haml::Filters::Base
- Haml::Filters::Cdata
- Haml::Filters::Css
- Haml::Filters::Erb
- Haml::Filters::Escaped
- Haml::Filters::Javascript
- Haml::Filters::Plain
- Haml::Filters::PrecompiledTiltFilter
- Haml::Filters::Preserve
- Haml::Filters::Ruby
- Haml::Filters::SassRailsTemplate
- Haml::Filters::ScssRailsTemplate
- Haml::Filters::TiltFilter
- Haml::Helpers
- Haml::Helpers::ActionViewExtensions
- Haml::Helpers::ErrorReturn
- Haml::Helpers::XssMods
- Haml::Options
- Haml::Parser
- Haml::Parser::Line
- Haml::Parser::ParseNode
- Haml::Plugin
- Haml::Railtie
- Haml::SafeErubisTemplate
- Haml::SyntaxError
- Haml::Template
- Haml::Util
- Haml::Util::StaticConditionalContext
- ActionView
- ActionView::Base
- ActionView::Helpers
- ActionView::Helpers::CaptureHelper
- ActionView::Helpers::FormHelper
- ActionView::Helpers::FormTagHelper
- ActionView::Helpers::HamlSupport
- ActionView::Helpers::InstanceTag
- ActionView::Helpers::TagHelper
- ActionView::Helpers::Tags
- ActionView::Helpers::Tags::TextArea
- ActionView::Helpers::TextHelper
- Object

No matching classes.

# Haml::Filters::SassRailsTemplate

This is an extension of Sass::Rails's SassTemplate class that allows Rails's asset helpers to be used inside Haml Sass filter.

### Public Instance Methods

render(scope=Object.new, locals={}, &block) click to toggle source

    # File lib/haml/sass_rails_filter.rb, line 6
    def render(scope=Object.new, locals={}, &block)
      scope = ::Rails.application.assets.context_class.new(::Rails.application.assets, "/", "/")
      super
    end

sass_options(scope) click to toggle source

    # File lib/haml/sass_rails_filter.rb, line 11
    def sass_options(scope)
      options = super
      options[:custom][:resolver] = ::ActionView::Base.new
      options
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.