Tidy up the templates cookbook.

this code snippet is wrong as you moved the namespace in the template above