Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#define - Assigns a block of VTL to a reference #14

Open
jmdcal opened this issue Jan 12, 2015 · 1 comment
Open

#define - Assigns a block of VTL to a reference #14

jmdcal opened this issue Jan 12, 2015 · 1 comment

Comments

@jmdcal
Copy link
Contributor

jmdcal commented Jan 12, 2015

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

@purcell
Copy link
Owner

purcell commented Jan 12, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants