Allow double opening brackets inside template body
Dollar sign escapes closing brackets
Code cleanup
Added documentation comment
Remove trailing empty line in conditionals
Refactoring