Module: HamlCompilerHack

Defined in:
lib/vignette/filter.rb

Overview

This is hack to allow us to pull names from filters

Instance Method Summary collapse

Instance Method Details

#compile_filterObject



73
74
75
76
77
78
79
80
# File 'lib/vignette/filter.rb', line 73

def compile_filter
  if @node.value[:name] =~ /vignette_(\w+)/i
    Haml::Filters::Vignette.internal_compile(self, @node.value[:text])
  else
    super
  end

end