paularmstrong/swig — pull request #201 by ivanvpan (2013-03-09 01:36:43+00:00)
Title: Make "compile" accessible in templates

Hey. Thanks a lot for swig. I am using it for a project and found the need to render templates stored in context variables. In other words I want to do this in my custom tag:

output += '_output += _this.compile(__tmyVar)(_context);';

I noticed that "compileFile" is available, but not compile, so I added it.