Template partials

Closes #52