Using blocks in templates