Fix for compiling external templates.
Merge branch 'master' of https://github.com/foam-framework/foam