[gallery-y-common-dombind] new template mechanism added using handlebars