Partial and template HTMLBars helpers.

Rebased version of #9546 by @mixonic.