justjohn/twig.js — pull request #69 by m0ppers (2013-03-17 21:10:34+00:00)
Title: Add (simple) {% raw %} implementation...

Well...this is really a simple implementation ;) however it works and not having {% raw %} at hand really drives me mad as my templates contain angularjs code. Currently my workaround is

{{ '{{' }} angular.var {{ '}}' }}

The only real problem with my implementation i see (i might of course be missing something ;) ) is that you have to type {% raw %} EXACTLY like this. Otherwise the parsing must be changed to support regexes for the tokens.