fix: allow whitespaces before # template

Fixes #89