summaryrefslogtreecommitdiffstats
path: root/layouts/partials/AddModule.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layouts/partials/AddModule.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/AddModule.html b/layouts/partials/AddModule.html
new file mode 100644
index 0000000..bd16780
--- /dev/null
+++ b/layouts/partials/AddModule.html
@@ -0,0 +1,9 @@
+{{ with .module }}
+ {{- $dependencies := page.Scratch.Get "dependencies" -}}
+ {{- if reflect.IsSlice $dependencies -}}
+ {{- $dependencies = complement $dependencies . -}}
+ {{ else }}
+ {{- $dependencies = slice . -}}
+ {{ end }}
+ {{- page.Scratch.Set "dependencies" $dependencies -}}
+{{ end }} \ No newline at end of file