feature: local variables can now be passed into templates