Fix some template parsing

Signed-off-by: Adam Stokes <hackr@cypherbook.com>