Adding parse API to templates