failsafe optional var, template baserul for downloads
[webi-installers/.git] / _common / normalize.js
index 8e984ffbf5eb18aa645d41f2158572c85fb49988..6a0830f15405774672f4016b0bb3ebf3dcf90076 100644 (file)
@@ -67,6 +67,10 @@ function normalize(all) {
         rel.ext = exts[0];
       }
     }
+
+    if (all.download) {
+       rel.download = all.download.replace(/{{ download }}/, rel.download);
+    }
   });
   return all;
 }