Puts grains in template tag