Support the empty template (fixes #27)