AngularJS: template prints nothing on localhost server

I have basic task to print something from template tag. It works if I open html file from filesystem, but it prints nothing if I run this from django web-server.

For example:

<li ng-repeat="k in [0, 1, 2]">{{k}}</li>

Output if I open file from filesystem:

<li>0</li>
<li>1</li>
<li>2</li>

And if I get file from Django web-server:

<li></li>
<li></li>
<li></li>

This problem is driving me crazy :(

If Django is messing with the {{}} tags, you can change the template tags like this:

    var app = angular.module('myApp', []);
    app.config(function($interpolateProvider) { 
      $interpolateProvider.startSymbol('(('); 
      $interpolateProvider.endSymbol('))');
    });

http://docs.angularjs.org/api/ng.$interpolateProvider

Be careful while using (( )). You can get problems with function calls inside (( )).

Also note the use of third-party directives (components) that use {{ }}. Your configuration will break them.

See http://stackoverflow.com/a/11108407/457375