passing tags and options seperately to the template