iris/_examples/examples/url-shortener/templates/index.html
Gerasimos (Makis) Maropoulos 549c8eba10 URL Shortener using Iris and BoltDB example
Former-commit-id: 059f5fcd6c1df8df11ed2594ee3c1b1ccc13c7b0
2017-03-14 14:54:04 +02:00

21 lines
500 B
HTML

<html>
<head>
<meta charset="utf-8">
<title>Golang URL Shortener</title>
<link rel="stylesheet" href="/static/css/style.css" />
</head>
<body>
<h2>Golang URL Shortener</h2>
<h3>{{ .form_result}}</h3>
<form action="/shorten" method="POST">
<input type="text" name="url" style="width: 35em;" />
<input type="submit" value="Shorten!" />
</form>
{{ if isPositive .url_count }}
<p>{{ .url_count }} URLs shortened</p>
{{ end }}
</body>
</html>