{{ $slug := ((.Context).Value "params").Slug }} {{ $csrfToken := (.Context).Value "csrfToken" }} {{ template "header" . }} <h2>Directory Creation</h2> <form class="mkdir" method="POST" action="/mkdir-process/{{$slug}}"> <input hidden type="text" name="csrfToken" value="{{$csrfToken}}"/> <span>Creating new directory in /{{$slug}}</span><br/> <label for="dirname-input">New Directory Name</label> <input required type="text" name="dirname" id="dirname-input"/> <input type="submit" value="Create"/> </form> {{ template "footer" . }}