    s sortby     SORTBY     code  "sort entries by function"
    c comparator COMPARATOR code  "sort by comparator function"
    p page       PAGE       str   "collection result page path"
-   m meta       META       edn   "metadata to set on each collection entry"]
+   m meta       META       edn   "metadata to set on each collection entry"
+   P pod        NAME       str   "name of the pod to run renderer in"]
   (let [p (or page "index.html")
+        pod-name (:pod *opts*)
         options (merge +collection-defaults+
                        (dissoc *opts* :page)
                        {:task-name "collection"
                         :tracer :io.perun/collection
-                        :grouper #(-> {p {:entries %}})})]
+                        :grouper #(-> {p {:entries %}})
+                        :pod (if pod-name (future (-> pod-name pod/get-pods first)))})]
     (assortment-task options)))
 
 (def ^:private +tags-defaults+

  "Handles common rendering task orchestration

  `paths-fn` takes a fileset as its only argument"
  [{:keys [task-name paths-fn renderer tracer rm-originals]}]
  (assert-renderer renderer)
  (content-task
   {:render-form-fn (fn [meta] `(io.perun.render/render ~renderer ~meta))
    :paths-fn paths-fn
    :task-name task-name
    :tracer tracer
    :pod render-pod
    :rm-originals rm-originals}))

(def ^:private +render-defaults+

          (render-task {:task-name task-name
                        :paths-fn #(grouped-paths task-name % options)
                        :renderer renderer
                        :tracer tracer
                        :pod pod}))))

(def ^:private +assortment-defaults+
  {:out-dir "public"
