Template-assisted growth of chemical gardens: Formation of dendrite structures