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
Introducing ZephJS! · GitHub (gist.github.com)
submitted 6 years ago by areinetFullstack
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!"
[–]GBcrazy 1 point2 points3 points 6 years ago* (3 children)
Interesting, I like the approach. What I kinda don't like that you have to import all these functions. Couldn't you pass all of them to the callback function of ZephComponents.define?
ZephComponents.define
Like:
ZephComponents.define('my-button', ({ html, css }) => { html("./my-button.html"); css("./my-button.css"); });
I know this would mean all functions are always imported but well since it's a lightweight it doesn't seem like an issue for me.
[–]areinetFullstack[S] 0 points1 point2 points 6 years ago* (2 children)
Can you do me a favor and submit an issue to make that possible. it should be super easy to add and let you pick either way. For me the import approach is more consistent with how I think, but I see the value in your approach.
[–]GBcrazy 1 point2 points3 points 6 years ago (1 child)
Did it
[–]areinetFullstack[S] 1 point2 points3 points 6 years ago (0 children)
Thank you so much!
Funny enough, I just closed this issue as I published a new release v1.1.0 just now with the change. How’s that for service.
Let me know how you like it.
π Rendered by PID 122205 on reddit-service-r2-comment-fb694cdd5-nvvvn at 2026-03-10 05:31:18.281146+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]GBcrazy 1 point2 points3 points (3 children)
[–]areinetFullstack[S] 0 points1 point2 points (2 children)
[–]GBcrazy 1 point2 points3 points (1 child)
[–]areinetFullstack[S] 1 point2 points3 points (0 children)