get or post template