added template array
added text-line template
added params for template and content-types