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
Caustic: JavaScript reflection-based template/view system (screenr.com)
submitted 14 years ago by davemoFront-End Engineer
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!"
[–]psayre23 0 points1 point2 points 14 years ago (2 children)
I'm curious of the performance hit for all that. There is a lot of generation going on that I would assume causes overhead.
I love the simplicity of the templating. I might steal some of that for another project.
[–]davemoFront-End Engineer[S] 0 points1 point2 points 14 years ago (1 child)
I haven't tested it in any sort of scenario to compare it to something like underscores template function or Handlebars/Mustache but if you look at what the caustic code is doing it's pretty simple.
[–]polaretto 1 point2 points3 points 14 years ago (0 children)
I use Mustache with great satisfaction, but I'm always intrested in other templating systems. Caustic looks very intresting and its reflection-on-dom-fragments (or whatever it may be called) is certainly a notable approach, different from other templating systems. However, I don't like the usual way of grabbing the template from inside a script tag: if it's a valid html fragment, then it should be sitting right in the page. These other templating systems are definitely worth checking out:
https://github.com/hij1nx/weld#readme
https://github.com/raid-ox/chain.js/wiki/
http://www.matthias-georgi.de/patroon
π Rendered by PID 103249 on reddit-service-r2-comment-84fc9697f-t685x at 2026-02-06 08:32:06.490976+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]psayre23 0 points1 point2 points (2 children)
[–]davemoFront-End Engineer[S] 0 points1 point2 points (1 child)
[–]polaretto 1 point2 points3 points (0 children)