Use this in a text editor that supports regex search (like Sublime Text)
Find all
\{\{#if ([\S]*)\}\}([\s\S]*?)\{\{else\}\}([\s\S]*?)\{\{/if\}\}
Replace With
<!-- IF $1 -->$2<!-- ELSE -->$3<!-- ENDIF $1 -->
Find All
\{\{#if ([\S]*)\}\}([\s\S]*?)\{\{/if\}\}
Replace With
<!-- IF $1 -->$2<!-- ENDIF $1 -->
Find All
\{\{\#each ([\S]*)\}\}([\s\S]*?)\{\{\/each\}\}
Replace With
<!-- BEGIN $1 -->$2<!-- END $1 -->
Find All
\{\{\{([\S]*?)\}\}\}
Replace With
{$1}
Find All
\{\{([\S]*?)\}\}
Replace With
{$1}