Sha256: d0e3aa454310e0bb42417818e8314bde439f99f5115d2dadbe7e7c991b693256

Contents?: true

Size: 150 Bytes

Versions: 71

Compression:

Stored size: 150 Bytes

Contents

class HamlFilter < TextFilter
  def filter(text)
    Haml::Engine.new(text).render.gsub(/&lt;(\/)?r:(.+?)\s*(\/?\\?)&gt;/m, '<\\1r:\\2\\3>')
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 app/models/haml_filter.rb
trusty-cms-7.0.2 app/models/haml_filter.rb
trusty-cms-7.0.1 app/models/haml_filter.rb
trusty-cms-7.0.0 app/models/haml_filter.rb
trusty-cms-6.3 app/models/haml_filter.rb
trusty-cms-6.2.1 app/models/haml_filter.rb
trusty-cms-6.2.2.1 app/models/haml_filter.rb
trusty-cms-6.2.0 app/models/haml_filter.rb
trusty-cms-6.1.2 app/models/haml_filter.rb
trusty-cms-6.1.1 app/models/haml_filter.rb
trusty-cms-6.0.5 app/models/haml_filter.rb
trusty-cms-6.0.4 app/models/haml_filter.rb
trusty-cms-6.0.3 app/models/haml_filter.rb
trusty-cms-6.0.2 app/models/haml_filter.rb
trusty-cms-6.0.1 app/models/haml_filter.rb
trusty-cms-5.6.1 app/models/haml_filter.rb
trusty-cms-6.0.0 app/models/haml_filter.rb
trusty-cms-5.6.0 app/models/haml_filter.rb
trusty-cms-5.5.9 app/models/haml_filter.rb
trusty-cms-5.5.8 app/models/haml_filter.rb