Sha256: c0f9a2bbe1fd0b4b038fcd125d98124b5c1b5c647e3b4c68a8a3c111b6088afc

Contents?: true

Size: 215 Bytes

Versions: 10

Compression:

Stored size: 215 Bytes

Contents

module Nanoc::Filters
  class Erubis < Nanoc::Filter

    identifiers :erubis

    def run(content)
      require 'erubis'

      # Get result
      ::Erubis::Eruby.new(content).evaluate(assigns)
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
nanoc-2.1 lib/nanoc/filters/erubis.rb
nanoc-2.1.1 lib/nanoc/filters/erubis.rb
nanoc-2.1.2 lib/nanoc/filters/erubis.rb
nanoc-2.1.3 lib/nanoc/filters/erubis.rb
nanoc-2.1.4 lib/nanoc/filters/erubis.rb
nanoc-2.1.5 lib/nanoc/filters/erubis.rb
nanoc-2.1.6 lib/nanoc/filters/erubis.rb
nanoc-2.2 lib/nanoc/filters/erubis.rb
nanoc-2.2.1 lib/nanoc/filters/erubis.rb
nanoc-2.2.2 lib/nanoc/filters/erubis.rb