-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Missing support for keySet() and toString()? #47
Comments
You could add support for |
Thanks for replying! @purcell I think I was a little hasty with the data = dict(a='2', b='3')
template = airspeed.Template("""
#foreach( $key in $data )
key: $key
data: $data[$key]
#end
""")
print(template.merge(locals())) output:
which is exactly what I need. as for I'm using Airspeed to develop templates for a web application that renders the templates with Java, hence I need to stay as close to the original templating language as possible if that makes sense? |
Yeah, I think if you need the output string to look exactly like that, that's quite a specific thing to expect of Airspeed. For things like that, you can provide formatting functions in the rendering context, e.g. |
No description provided.
The text was updated successfully, but these errors were encountered: