Sha256: 082017633286d3a99fdc5ee3c03b9558312b9c7ae937782a0a856d8039abdf30
Contents?: true
Size: 329 Bytes
Versions: 3
Compression:
Stored size: 329 Bytes
Contents
module Nanoc::Filters class ERB < Nanoc::Filter identifiers :erb def run(content) require 'erb' # Create context context = ::Nanoc::Extra::Context.new(assigns) # Get result erb = ::ERB.new(content) erb.filename = filename erb.result(context.get_binding) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-2.2 | lib/nanoc/filters/erb.rb |
nanoc-2.2.1 | lib/nanoc/filters/erb.rb |
nanoc-2.2.2 | lib/nanoc/filters/erb.rb |