Swig should compile file contents not by file path; consistent with gulp

Older versions of swig didn't support rendering templates by string when extending layouts or including partials.