2022-10-20 16:59:33 +00:00
|
|
|
{{ define "pageTitle" }}Home{{ end }}
|
|
|
|
|
2023-05-04 13:26:44 +00:00
|
|
|
{{ define "file-upload" }}
|
|
|
|
<form
|
|
|
|
enctype="multipart/form-data"
|
|
|
|
action="/upload-handle"
|
|
|
|
method="post"
|
|
|
|
>
|
|
|
|
<input type="file" accept="*/*" name="file" />
|
|
|
|
<input type="submit" value="upload" />
|
|
|
|
</form>
|
|
|
|
{{ end }}
|
|
|
|
|
2022-10-20 16:59:33 +00:00
|
|
|
{{ define "content" }}
|
|
|
|
{{ .Test }}
|
2023-05-04 13:26:44 +00:00
|
|
|
|
|
|
|
<!-- Uncomment below to demo file upload system -->
|
|
|
|
|
|
|
|
<!-- {{ template "file-upload" . }} -->
|
|
|
|
<!-- <p>Upload an image called test.jpg to test the file upload system</p> -->
|
|
|
|
<!-- <img src="/uploads?name=test.jpg" alt=""> -->
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
{{ end }}
|