Hacker News new | ask | show | jobs
by williamcotton 257 days ago
I wrote my own DSL to write my own blogging engine with embedded Lua, jq, mustache, and more:

https://github.com/williamcotton/webpipe

My blog code:

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>`