mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
Add notes for the new lead maintainer of the open-source iris project and align with @get-ion/ion by @hiveminded
Former-commit-id: da4f38eb9034daa49446df3ee529423b98f9b331
This commit is contained in:
25
_examples/tutorial/url-shortener/templates/index.html
Normal file
25
_examples/tutorial/url-shortener/templates/index.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<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 }}
|
||||
|
||||
<form action="/clear_cache" method="POST">
|
||||
<input type="submit" value="Clear DB" />
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user