airspeed
airspeed copied to clipboard
#define - Assigns a block of VTL to a reference
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
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?