Wrote plugin handeler for view templates.