Fixed template validation docs and example.