wfrm
High-level web framework (Express/Rails style).
Load with: use wfrm
Quick example
use wfrm
result = wfst("value", 10, "value")
prn(result)
Functions
Application
wfap()
Performs the operation.
wfst(ap, k, v)
Sets a value or starts a process. Takes ap, k, v.
wfge(ap, k)
Gets or retrieves a value. Takes ap, k.
Middleware
wfus(ap, cb)
Performs the operation. Takes ap, cb.
wfjs(ap)
Performs the operation. Takes ap.
wfbp(ap)
Performs the operation. Takes ap.
wfcrs(ap, og)
Resets. Takes ap, og.
wfses(ap, sc)
Performs the operation. Takes ap, sc.
wfsta(ap, pt)
Performs the operation. Takes ap, pt.
wfhel(ap)
Performs the operation. Takes ap.
Routing
wfget(ap, pt, cb)
Performs the operation. Takes ap, pt, cb.
wfpo(ap, pt, cb)
Performs the operation. Takes ap, pt, cb.
wfpu(ap, pt, cb)
Performs the operation. Takes ap, pt, cb.
wfde(ap, pt, cb)
Decodes. Takes ap, pt, cb.
wfpa(ap, pt, cb)
Parses. Takes ap, pt, cb.
wfrt(ap, mt, pt, cb)
Performs the operation. Takes ap, mt, pt, cb.
wfrx(pt)
Performs the operation. Takes pt.
Route groups
wfrg(ap, pr, cb)
Performs the operation. Takes ap, pr, cb.
wfgg(rg, mt, pt, cb)
Performs the operation. Takes rg, mt, pt, cb.
wfgg1(rg, pt, cb)
Performs the operation. Takes rg, pt, cb.
wfgg2(rg, pt, cb)
Performs the operation. Takes rg, pt, cb.
Error handling
wfer(ap, cb)
Performs the operation. Takes ap, cb.
Response helpers
wfsen(rs, dt)
Encodes. Takes rs, dt.
wfsta1(rs, c)
Performs the operation. Takes rs, c.
wfred(rs, url, c)
Performs the operation. Takes rs, url, c.
wfrnd(rs, vw, ctx)
Performs the operation. Takes rs, vw, ctx.
wffl(rs, pt)
Performs the operation. Takes rs, pt.
Listen
wfls(ap, pt, cb)
Lists items. Takes ap, pt, cb.
Extract params
wfexp(url, pt)
Performs the operation. Takes url, pt.
Validation
wfvd(ctx, ru)
Performs the operation. Takes ctx, ru.
Resource controller
wfre(ap, pt, ctl)
Performs the operation. Takes ap, pt, ctl.
WebSocket upgrade
wfws(ap, pt, hnd)
Performs the operation. Takes ap, pt, hnd.
Notes
- Web forms - parse, validate, render HTML forms.