airspeed icon indicating copy to clipboard operation
airspeed copied to clipboard

#define - Assigns a block of VTL to a reference

Open jmdcal opened this issue 10 years ago • 1 comments

import airspeed
d = """
#define( $hello ) Hello $who #end 
#set( $who = "World!") $hello 
"""
t = airspeed.Template(d)
o = t.merge({   })
print o

http://velocity.apache.org/engine/devel/vtl-reference-guide.html

jmdcal avatar Jan 12 '15 00:01 jmdcal

Aha, indeed. I haven't used airspeed myself for a little while, but @dbaxa has been doing a bunch of great work to bring it up to par. Perhaps this is a feature he's looked at implementing?

purcell avatar Jan 12 '15 12:01 purcell