You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: