When rendering partials, pass the partial template instead of the original template.
Check for existence of partial template before parsing