         path (perun/create-filepath out-dir page)
         static-path (fn [fileset]
                       {path {:meta (pm/get-global-meta fileset)
-                             :entry (assoc meta :path path)}})]
+                             :entry (assoc meta :path path :out-dir out-dir)}})]
     (render-task {:task-name "static"
                   :paths-fn static-path
                   :renderer renderer

   e extensions EXTENSIONS [str] "extensions of files to include"
   r renderer   RENDERER   sym   "page renderer (fully qualified symbol which resolves to a function)"
   m meta       META       edn   "metadata to set on each entry"]
  (let [{:keys [renderer] :as options} (merge +render-defaults+ *opts*)]
    (letfn [(render-paths [fileset]
              (let [entries (filter-meta-by-ext fileset options)]
                (reduce
                 (fn [result {:keys [out-dir filename path] :as entry}]
                   (let [content (slurp (boot/tmp-file (boot/tmp-get fileset path)))
                         path-args (if (= out-dir (:out-dir options)) ;; if custom out-dir we cannot rely on pre-built :path
                                     [path]
                                     [out-dir (:out-dir options) filename])
                         new-path (apply perun/create-filepath path-args)
                         new-entry (merge entry
                                          meta
                                          {:content content
                                           :out-dir (:out-dir options)})]
                     (assoc result new-path {:meta    (pm/get-global-meta fileset)
                                             :entries entries
                                             :entry   new-entry

      (-> fileset
          (commit tmp)
          (pm/set-meta updated-metas)))))

(defn apply-out-dir
  [path old-out-dir new-out-dir]
  (let [path-args (if (= old-out-dir new-out-dir)
                    [path]
                    [new-out-dir path])]
    (apply perun/create-filepath path-args)))

(defn render-in-pod
  "Renders paths in `inputs`, using `render-form-fn` in `pod`
