       (-> 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`

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

  (let [global-meta (pm/get-global-meta fileset)]
    (reduce (fn [result {:keys [path] :as entry}]
              (let [ext-pattern (re-pattern (str "(" (string/join "|" extensions) ")$"))
                    ext-path (if out-ext
                               (string/replace path ext-pattern out-ext)
                               path)
                    new-path (apply-out-dir ext-path (:out-dir entry) out-dir)
                    path-meta (pm/path-meta path
                                            global-meta
                                            (boot/tmp-file (boot/tmp-get fileset path)))]
