Sha256: 68a7dbb2f1b4eba642f98f7f6f93ff2fd68f492aa05dcfcc35b9583c3b8beafe
Contents?: true
Size: 332 Bytes
Versions: 1
Compression:
Stored size: 332 Bytes
Contents
module Nanoc2::Filters class ERB < Nanoc2::Filter identifiers :erb def run(content) require 'erb' # Create context context = ::Nanoc2::Extra::Context.new(assigns) # Get result erb = ::ERB.new(content) erb.filename = filename erb.result(context.get_binding) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc2-2.2.3 | lib/nanoc2/filters/erb.rb |