summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toastin.space>2019-03-03 18:26:54 -0500
committerChloe Kudryavtsev <toast@toastin.space>2019-03-03 18:26:54 -0500
commita60c4657f2ca259c6901faa7394a0815324359df (patch)
tree8bc4164942b923dc9823c90adbb7bb59054805b5
parentOneline tables (diff)
Rewrite examples
And only use httpie
-rw-r--r--views/index.dt7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/index.dt b/views/index.dt
index be6ee39..7973579 100644
--- a/views/index.dt
+++ b/views/index.dt
@@ -25,11 +25,12 @@ block content
td: Get the raw contents of paste with ID "id"
h2 Examples
pre: code(class='language-sh')
- | curl -F 'data=<-' https://brpaste.example.com
| http -f https://brpaste.example.com data=@file.txt
- | curl https://brpaste.example.com/raw/some_id
- | xdg-open https://brpaste.example.com/some_id?cpp
+ | http -f https://brpaste.example.com data=abcd
+ | http -f PUT https://brpaste.example.com/myPaste data=contents
+ | http https://brpaste.example.com/raw/some_id
| http https://brpaste.example.com/some_id lang==cpp
+ | xdg-open https://brpaste.example.com/some_id?cpp
h2 Paste from a browser
form(action='/', method='post')
textarea(name='data', autocomplete='off',