Remove empty list inside templates

Added ClearList method
Merge pull request #5 from jlamim/master

Remove empty list inside templates