Post ATicNPWIZkhHtTccSW by ourmaninjapan@mastodon.cloud
(DIR) More posts by ourmaninjapan@mastodon.cloud
(DIR) Post #ATi0CMpqQ8tI7j4URk by tripu@qoto.org
2023-03-17T14:03:12Z
0 likes, 0 repeats
:javascript: #JS :node: #NodeWhat should I use instead of #Express and #Handlebars for a web application in Node.js in 2023? Can someone summarise pros and cons of the most popular alternatives? I see way too many…
(DIR) Post #ATi9CBhqhHITCAJx5M by tripu@qoto.org
2023-03-17T15:44:02Z
0 likes, 0 repeats
https://alternativeto.net/software/expressjs/https://stackshare.io/expressjs/alternativeshttps://alternativeto.net/software/handlebars/https://stackshare.io/handlebars/alternatives
(DIR) Post #ATiBvUpEevL5QpVZRo by tripu@qoto.org
2023-03-17T16:14:37Z
0 likes, 0 repeats
Alternatives to #Express:Koa, which can either replace or complement both Express and Connect.Fastify, which looks straightforward and very similar to Express. Plugin for templating (supporting Handlebars, Mustache, Pug and EJS): @fastify/view.NestJS, which seems too convoluted and probably redundant since it works on top of either Express or Fastify (?).Meteor: more of a platform. No tutorial for vanilla JS (only for React, Vue, etc), and not oriented towards SSR.I’ll probably go for #Koa or #Fastify.:javascript: #JS #JavaScript :node: #Node.js #Node
(DIR) Post #ATiIA0FLETcIf51HXM by tripu@qoto.org
2023-03-17T17:24:28Z
0 likes, 0 repeats
Alternatives to #Handlebars:Mustache: zero dependencies, and dead simple. Too simple? Being logic-less means that conditionals and loops are pre-cooked, and that may limit options.Pug: main advantage and main drawback: its concise but idiosyncratic syntax, similar to that of #Slim — which I know and have used in the past, but is too much of a departure from #HTML.EJS: similar to Handlebars, simple but apparently versatile. Documentation isn’t great.:javascript: #JS #JavaScript :node: #Node.js #Node
(DIR) Post #ATiKJMk3AGsiwayYHw by fidel@mastodon.social
2023-03-17T17:48:34Z
0 likes, 0 repeats
@tripu I don't know which project you have in mind, but I would very much would like to do something with Django and htmx (https://htmx.org/) or unpoly (https://unpoly.com/).
(DIR) Post #ATiMeniOH2IWacY34i by tripu@qoto.org
2023-03-17T18:14:52Z
0 likes, 0 repeats
The plugin ecosystem for templating engines in Express is (still) larger than in Koa.In particular, for #Handlebars, there seem to be just 3 in #Koa, and all quite outdated (last updated in 2016, 2017 and 2017).
(DIR) Post #ATicNPWIZkhHtTccSW by ourmaninjapan@mastodon.cloud
2023-03-17T21:10:57Z
0 likes, 0 repeats
@tripu Maybe start off with simplicity (Mustache) and see how it goes? It may turn out to be all you need. If not, and you decide to switch down the line, you can just get AI to convert any existing files.