Templating functionality

Check out the example linked in this thread to see something like this in action