python - Angular.js and Genshi - conflicts using $ -
hi i'm writing webapp using python, turbogears 2.2, , genshi view\templates.
on view side, i'm using angular.js. of time work together. problem – when want use stuff $index inside ng-repeat cannot. when try doing that, genshi.template.eval.undefinederror
here html code demonstrate:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/xinclude" ng-app="orderitemeditapp"> ... code ... <tr ngrepeat="item in items"> <td>{{$index}}</td> ....
is there way use $index (or other stuff) genshi , angular.js? help
use double dollar signs in genshi template escaping:
<td>{{$$index}}</td>
will output:
<td>{{$index}}</td>
Comments
Post a Comment