Render grid in template