28 lines
603 B
Plaintext
28 lines
603 B
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
{{$directory := "letters"}}
|
|
<p>Files sorted alphabetically:</p>
|
|
<ul>
|
|
{{range listFiles $directory}}
|
|
<li>{{.}}</li>
|
|
{{end}}
|
|
</ul>
|
|
<p>Files sorted temporally:</p>
|
|
<ul>
|
|
{{range listFilesDate $directory}}
|
|
<li>{{.}}</li>
|
|
{{end}}
|
|
</ul>
|
|
<hr>
|
|
<p>Make a new file and watch the information above change:</p>
|
|
<form action="make.step" method="POST">
|
|
<input type="text" name="name" placeholder="File name"><br>
|
|
<input type="text" name="content" placeholder="File content"><br>
|
|
<input type="submit" value="Create file">
|
|
</form>
|
|
</body>
|
|
</html>
|