You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full stack options in Bun are awesome - I can quickly get a server with client bundling and server code running - really cool.
One thing I'd like to see added is the ability to do some kind of templating with it - possibly with HTMLRewriter? Indeed it might actually already be possible - but I can't see any way to modify the HTMLRewriter instance that the static routes use. If that was available I could do some simple string replacement based on some views that are read into memory when spinning up.
Is the HTMLRewriter instance available is some way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The full stack options in Bun are awesome - I can quickly get a server with client bundling and server code running - really cool.
One thing I'd like to see added is the ability to do some kind of templating with it - possibly with HTMLRewriter? Indeed it might actually already be possible - but I can't see any way to modify the HTMLRewriter instance that the static routes use. If that was available I could do some simple string replacement based on some views that are read into memory when spinning up.
Is the HTMLRewriter instance available is some way?
Beta Was this translation helpful? Give feedback.
All reactions