changed object to variables automatically with simple template parsing