store template code