diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-08-21 18:28:30 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-08-21 18:28:30 -0400 |
| commit | 47dca324a446bf088164a8e27404c2b8db89ccf5 (patch) | |
| tree | cd6407bd09ee5acc027fc69a51d98156a6ab7e9a /templates/view.tpl | |
| parent | d25b274356451623382d18d2e0e190f407dbcf9f (diff) | |
| download | paste-47dca324a446bf088164a8e27404c2b8db89ccf5.tar.gz paste-47dca324a446bf088164a8e27404c2b8db89ccf5.tar.xz | |
Turn it into a simple rough draft of an API driven pastebin
Diffstat (limited to 'templates/view.tpl')
| -rw-r--r-- | templates/view.tpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/view.tpl b/templates/view.tpl new file mode 100644 index 0000000..76efe57 --- /dev/null +++ b/templates/view.tpl @@ -0,0 +1,9 @@ +{{template "base" .}} + +{{define "title"}}Paste: {{.Title}}{{end}} + +{{define "content"}} +<h1>Paste: "{{.Title}}"</h1> + +<pre><code>{{.GetContent}}</pre></code> +{{end}} |
