A couple years ago I started this small project for doing "old style" server templates but in a much more modern way and wanted to share it here. I'd appreciate any feedback you might have or any ideas to improve it if you have any.
I know nowadays doing "old style" templates is pretty out of fashion for many of us, but when working just myself on some side projects I felt like using a full blown modern "SPA" framework such as React or Vue was overkill, so I opted for doing plain old server templates with Stimulus.js sprinkles for the client side interactivity.
I tried EJS, Handlebars, Nunjucks, and a few others but after having enjoyed the support you get for TypeScript, Intellisense, syntax highlighting, autoformatting and other benefits that you get when using JSX, I felt like the existing templating solutions were way too out of date.
So I gave it a spin and ended up building this. It looks a bit like JSX and it's actually inspired in lit-html, except it's simplified to the maximum (implementation is about 70 lines) and works both in the browser and on the server.
Not many features, and nothing super special, but I use it daily since I started it and works fine for myself. I'm also trying to make it as easy as possible to run, either on your own laptop or on any hosting provider.
It's not great nor complete, but is very simple and does the basic thing, it has no ads and there is no risk somebody will turn it off or push it in commercial ways.
I built it about a month ago over the weekend and haven't looked back to other popular services.
If you're a developer, making an RSS reader you like seems like a very nice side project to try out new tools, frameworks, etc... more useful than a TODO list and also very simple to build.
Yes, I think that's what basically the code is, some kind of a one time password. The fact it is just 5 digits is not something I've paid a lot of attention to be honest, as this is something really easy to change. Probably you could even use letters, symbols, etc... the trade-off is annoying a bit more the end user.
A couple years ago I started this small project for doing "old style" server templates but in a much more modern way and wanted to share it here. I'd appreciate any feedback you might have or any ideas to improve it if you have any.
I know nowadays doing "old style" templates is pretty out of fashion for many of us, but when working just myself on some side projects I felt like using a full blown modern "SPA" framework such as React or Vue was overkill, so I opted for doing plain old server templates with Stimulus.js sprinkles for the client side interactivity.
I tried EJS, Handlebars, Nunjucks, and a few others but after having enjoyed the support you get for TypeScript, Intellisense, syntax highlighting, autoformatting and other benefits that you get when using JSX, I felt like the existing templating solutions were way too out of date.
So I gave it a spin and ended up building this. It looks a bit like JSX and it's actually inspired in lit-html, except it's simplified to the maximum (implementation is about 70 lines) and works both in the browser and on the server.
Thanks for any feedback.
NPM package: https://www.npmjs.com/package/html-string
Github repo: https://github.com/msurdi/html-string