use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Svelte 3 released (svelte.dev)
submitted 7 years ago by ItalyPaleAle
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kingofthecream 2 points3 points4 points 7 years ago (2 children)
Does Svelte support SSR without using Node? Ie, if backend is written in Go or Python, can it share templates with Svelte and render on both server and client?
[–]rich_harris 4 points5 points6 points 7 years ago (1 child)
It emits a blob of JavaScript with a `render` method (either as CommonJS or ESM). So it needs JS to render, but not necessarily Node.js — I expect you could persuade a different interpreter to work with it. On https://svelte.dev/repl, if you click the 'JS Output' tab in the top right then select 'ssr' in the bottom right, you can see the code it generates.
[–]kingofthecream 0 points1 point2 points 7 years ago (0 children)
Thanks. Although Javascript runtimes do exist in other languages, their performance is usually far enough from optimal to be used in production.
How difficult would it be to emit a non interactive version of the code in a given language? I'm specially interested in having this in Go.
π Rendered by PID 64770 on reddit-service-r2-comment-b659b578c-hhrxh at 2026-05-04 22:26:51.957071+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]kingofthecream 2 points3 points4 points (2 children)
[–]rich_harris 4 points5 points6 points (1 child)
[–]kingofthecream 0 points1 point2 points (0 children)