Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Routerless. Parent comment
Step 1: Attach pro-router
Step 2: R.init(root: 'helloworld')
Step 3:
R.write('foo', 'bar')
# url changes from '/' to '/helloworld/foo/bar'
R.param('foo') # => 'bar'
Please ask me any use case you'd like to solve. I'll try to explain more.
There are no comments on this comment yet.
Step 1: Attach pro-router
Step 2: R.init(root: 'helloworld')
Step 3:
R.write('foo', 'bar')
# url changes from '/' to '/helloworld/foo/bar'
R.param('foo') # => 'bar'
Please ask me any use case you'd like to solve. I'll try to explain more.