added handlebars rendering with environment support