Saving web app
parent
55378404b3
commit
cf3e603031
@ -0,0 +1 @@
|
|||||||
|
This is a test page for page two.
|
@ -0,0 +1,15 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{{.Title}}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>{{.Title}}</h1>
|
||||||
|
<form action="/save/{{.Title}}" method="POST">
|
||||||
|
<div><textarea name="body" cols="80" rows="20">{{printf "%s" .Body}}</textarea></div>
|
||||||
|
<div><input type="submit" value="Save"></div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,12 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{{ .Title }}</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>{{.Title}}</h1>
|
||||||
|
<div>{{ printf "%s" .Body }}</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue