more useful .gitignore
Replace template if blocks with yesno filter
template improvements, docs and tests