3 ms·
I wrote my own DSL to write my own blogging engine with embedded Lua, jq, mustache, and more: https://github.com/williamcotton/webpipe https://github.com/willi
by williamcotton 1y ago
I wrote my own DSL to write my own blogging engine with embedded Lua, jq, mustache, and more:
https://github.com/williamcotton/webpipe https://github.com/williamcotton/webpipe
My blog code:
https://github.com/williamcotton/williamcotton.com/blob/master/app.wp https://github.com/williamcotton/williamcotton.com/blob/mast...
GET /hello/:world
|> jq: `{ world: .params.world }`
|> handlebars: `<p>hello, {{world}}</p>`
describe "hello, world"
it "calls the route"
when calling GET /hello/world
then status is 200
and output equals `<p>hello, world</p>`