Template-induced diverse metal-organic materials as catalysts for the tandem acylation-Nazarov cyclization.