use reversejs, wrap it in angularjs. collect all templatetags into addon.