Inline template generator for AngularJS directives.