HackerTrans
TopNewTrendsCommentsPastAskShowJobs

msurdi

no profile record

Submissions

A templating library based on JavaScript tagged template literals

npmjs.com
3 points·by msurdi·3 года назад·2 comments

comments

msurdi
·3 года назад·discuss
Hi folks,

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
msurdi
·4 года назад·discuss
Yet another shameless plug of my feed reader side project: https://github.com/msurdi/feedo

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.
msurdi
·4 года назад·discuss
I've built my own RSS feeds reader. Nothing great to write home about and quite simplistic but I use it daily.

https://github.com/msurdi/feedo
msurdi
·5 лет назад·discuss
Shameless plug of my own RSS reader side project: https://github.com/msurdi/feedo.

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.
msurdi
·5 лет назад·discuss
Feedo: An RSS/Atom reader that feels like an SPA but it is not.

Built 100% on JavaScript, using node, express, prisma, tailwind and unpoly.

Just invested a weekend and a couple more hours after work this week, so not many features and not well tested yet, but works.

https://github.com/msurdi/feedo