template functions and parser

got standard parser and going to patch it for removing new lines after
{{}} from parsed output