adding support for {{if condition}}then display this{{/if}} blocks.
also fixed bug in parsing of # on closing block tags