Last active

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Rough ideas for a gherkin-like environment for writing web applications. Things in parentheses are comments. `do some name` triggers the 'some name' signal defined by `on some name`

View notes.web
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 39
on GET /notes
fetch the 20 most recent notes filtered by tag
show as h-feed
on GET /notes/new
the user must be an admin
show autofilled note-form
on GET /notes/{id}
fetch note
show as h-entry
on POST /notes
the user must be an admin
make note from the request
do pre-note tasks (autolinking, etc)
save note
do post-note tasks (webmention, POSSE and such)
save note (just in case post-note tasks altered it)
redirect to note as 303 (See Other)
on PUT /notes/{id}
user must be an admin
fetch note
update note from request
do post-note-edit tasks
save note
on pre-note tasks
convert markdown
autolink URLs
autolink contact names
on post-note tasks
send webmentions
POSSE to twitter
on post-note-edit tasks
send webmentions
bnvk commented

Next level shizzle... same as that snúðar :D


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.