Sha256: b449d575d6380f21e4b4d801af014cadbc863fd821c5e3e673392222fb7da3b9
Contents?: true
Size: 505 Bytes
Versions: 96
Compression:
Stored size: 505 Bytes
Contents
module Temple module Generators # Implements an ERB generator. # # @api public class ERB < Generator def call(exp) compile(exp) end def on_multi(*exp) exp.map {|e| compile(e) }.join('') end def on_capture(name, exp) on_code(super) end def on_static(text) text end def on_dynamic(code) "<%= #{code} %>" end def on_code(code) "<% #{code} %>" end end end end
Version data entries
96 entries across 82 versions & 6 rubygems