updated to work with hogan instead of handlebars