blob: 2eb8ad4143f06837b806378c4ec1116f0605531c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
extends layout
block content
h1 Burning Rubber Paste
h2 Usage
table(border='1')
thead: tr
th Method - Endpoint
th Effect
tbody
tr
td: pre: code POST /data=anything
td Pastebin anything
tr
td: pre: code GET /id
td Read paste with ID "id"
tr
td: pre: code GET /id?lang
td Read paste with ID "id", and highlight it as "lang"
tr
td: pre: code GET /raw/id
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 https://brpaste.example.com/some_id lang==cpp
h2 Paste from a browser
form(action='/', method='post')
textarea(name='data', autocomplete='off',
required, autofocus,
cols='80', rows='27')
br
button(type='submit') Paste it!
//- vim: ft=pug
|