Added post method to templates.