Sha256: 9722c6470cebf31112f81427db9dc0a8f0a2cbab189cd411ab6b5d038d311d0f
Contents?: true
Size: 307 Bytes
Versions: 1
Compression:
Stored size: 307 Bytes
Contents
module ExpressTemplates module Components class Yielder def initialize(*args) @arg = args.first end def compile if @arg "yield(#{@arg})" else "yield" end end def to_template compile end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
express_templates-0.2.0 | lib/express_templates/components/yielder.rb |