Taku Amano
Taku Amano
@peterver Thanks for the response. Well... Currently web browser support for CSS Nesting is a little over 80%, but I expect that number to rise considerably this year. We also...
@yusukebe How about a router like this?
Added basic tests by 8270f04 Now the performance of initialization is degrading. ``` % npm run bench-includes-init:node .... LinearRouter 2.11x faster than KoaTreeRouter 2.88x faster than MedleyRouter 2.91x faster than...
6e504c7 changes made it a little faster. ``` % npm run bench-includes-init:node .... summary for GET /static/index.html LinearRouter 2.13x faster than KoaTreeRouter 2.79x faster than MedleyRouter 2.89x faster than TrekRouter...
@yusukebe Sorry, I will explain the specifications. ### Supported Path Patterns * Static path * `/path/to/static` * Capture parameter * `/posts/:id`, `/posts/:id/comments` * Middleware * `*`, `/*`, `/posts/*`, `posts/:id/*` The...
I agree 👍 > I think we should consider including this FilePatternRouter in v4. Until then, how about we keep this open?
Sorry, I submitted once to #1850 by mistake. ### Cons I did not mention the cons of this router, so I will add them here. #### The regex generated is...
The general usage is as follows ```ts const app = new Hono() app.get( '/page/*', jsxRenderer(({ children }) => { let finalize = () => {} const finalizePromise = new Promise((resolve)...
@yusukebe Thanks. Yes, that is a simple example! If you do not need a Promise, it can be written a little simpler, as follows ```ts app.get('/', (c) => { const...
2e92927 eliminates the need to write `toString()`. ```ts const app = new Hono() app.get('/', (c) => { const node = jsxNode( Hello console.log('Hello'); ).on('renderToString.script', ({ setContent, node }) => setContent(`${node.children[0]}`)...