added new mechanism for using the template tags (can pass django variables in). Fixes #1.