Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Script Type "text/ng-template" #69

Open
rotherfuchs opened this issue Feb 17, 2015 · 0 comments
Open

Support for Script Type "text/ng-template" #69

rotherfuchs opened this issue Feb 17, 2015 · 0 comments

Comments

@rotherfuchs
Copy link

Hey there,

I'm using django-compressor with Django 1.7.2, AngularJS and HAML.

In AngularJS, you can define inline templates within your HTML or HAML Code by enclosing it into a <script> tag ( see https://docs.angularjs.org/api/ng/directive/script ). Within here, you actually write normal HTML or HAML plus the {{ variables }} notation (just stuff within two {{ }} brackets ).

Now when I declare inline AngularJS Templates, they are not being compressed because the type is not 'text/javascript' but 'text/ng-template'.

It would be spliendid if django-compressor would support that tag. I guess it should be the same mechanism like compressing HTML, just make sure you're not removing spaces within the curly braces.

Thanks & Cheers
Fabian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant