Create a rendering stub

This commit is contained in:
Daan Sprenkels
2019-09-15 19:51:54 +02:00
parent b7a4b1fee8
commit ddd674e88a
6 changed files with 226 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{block "title" .}}{{end}}</title>{{block "head-append" .}}{{end}}
</head>
<body>
{{block "body" .}}{{end}}
</body>
</html>

View File

View File

@@ -0,0 +1,14 @@
{{define "body"}}
<pre>
#RU URL SHORTENER
=================
Based on https://0x0.st/, this site allows you to easily shorten URLs using
the command line.
## USAGE
# Shorten a URL
curl -F'shorten=http://example.com/some/long/url' <a href="https://hashru.link">https://hashru.link</a>
</pre>
{{end}}

View File

@@ -0,0 +1,10 @@
#RU URL SHORTENER
=================
Based on https://0x0.st/, this site allows you to easily shorten URLs using
the command line.
## USAGE
# Shorten a URL
curl -F'shorten=http://example.com/some/long/url' https://hashru.link