github.com/goplus/yap@v0.8.1/demo/classfile_blog/blog_yap.gox (about) 1 get "/", ctx => { 2 ctx.html `<html><body>Hello, <a href="/p/123">YAP</a>!</body></html>` 3 } 4 get "/p/:id", ctx => { 5 ctx.yap "article", { 6 "id": ctx.param("id"), 7 } 8 } 9 10 run ":8888"