paularmstrong/swig — pull request #407 by tvavrys (2014-01-22 16:31:51+00:00)
Title: Fixes "include" tag compilation when parentFile is null

I ran into "Uncaught TypeError: Cannot call method 'replace' of null " during browser client-side rendering.

**Javascript**

var html = swig.render(tmpl, {'locals': {
'project': self.model.attributes
}});

**Template**

{{ project.name }}

{{ project.description }}

{% include "project/includes/project_button_activate.html" %}