Improved the example template code in the readme

The old example wasn't great - you end up with the heading as the first item in the list, and the if statement is un-necessarily long.