Added Handlebar template functionality
template functions