HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
janl
mustache.js
JavaScript2010–2023
janl / mustache.js

mustache.js

Minimal templating with {{mustaches}} in JavaScript

8Distinct people
8Mentions
0Explicit recommenders
16.7KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Minimal templating with {{mustaches}} in JavaScript

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year8 dated mentions

Observed mentions: 2010-06-14 14:19:01 UTC to 2023-05-16 22:27:39 UTC.

01232010-01-01 00:00:00 UTC to 2011-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments20102011-01-01 00:00:00 UTC to 2012-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2012-01-01 00:00:00 UTC to 2013-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-01-01 00:00:00 UTC to 2014-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20102010-01-01 00:00:00 UTC2011-01-01 00:00:00 UTC312
20112011-01-01 00:00:00 UTC2012-01-01 00:00:00 UTC101
20122012-01-01 00:00:00 UTC2013-01-01 00:00:00 UTC000
20132013-01-01 00:00:00 UTC2014-01-01 00:00:00 UTC000
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC000
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC101
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC000
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC101
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC000
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101

What Hacker News says

8 sources
The basics of web programming for websites would be HTML, CSS. Then you need Javascript to do most of the fun stuff. https://www.w3schools.com is also a pretty good place to begin with for all of those and a great resource to refer to for quick answers for common questions. And I agree with "mtmail" that udemy.com is a great way to learn as well. Once you understand the basics of how html/css work you'll want add some interactivity with Javascript. For example, create a couple buttons that call a "function" to "hide/show" an element on a web page. Typically your first attempt might be an alert box with a border and the message "Hello World!". From there you're really "off to the races" and my advice is to start making something (start simple) and learn on a "want/need to know" basis. Google searches, https://stackoverflow.com, and w3schoo
Read the rest
ls.com are all great resources for finding answers about how to do stuff so don't spend a lot of time banging your head on little syntax issues or "how to do something", do a search and find the answer, implement it, learn from it, and move on. And I also agree that, especially to begin with, you should stay away from "Frameworks" like "Angular" and "React". But you can learn a lot by looking into them and a great place to do that is https://ToDoMVC.com. But I do believe it's worth while looking into what you can do with jQuery. jQuery is not really a "framework", it's more a "library" of functions that make it easy to do common things you'll want to do. Lots of them can be done with plain old javascript but jQuery is still widely used and offers a lot. And it's easy to find answers to almost any question you might have about how do to stuff at Stackoverflow. The same can be said for "Bootstrap" (http://getbootstrap.com). With this you can easily make a "Reactive" website that looks great on desktop PCs, tablets, and phones, and it has a ton of built-in features that you're going to want to use and top notch documentation. After you get familiar with those you'll want to look into server side programming to handle things like forms and connecting to databases. FWIW, I never used PHP and MySQL. I just didn't like the way they worked. Nowadays you have some great alternatives like CouchDB/PouchDB for database chores and javascript templates engines like "Mustache.js" (https://github.com/janl/mustache.js/) to format and display data. I made a fairly simple "Todo" app using this approach that you can take a look at and hack on. You can play with it at: https://cherrypc.com/todo/ There's a brief overview at: https://cherrypc.com/todo/readme.txt And you can grab the code at: https://cherrypc.com/todo.zip. You don't need a web server to use it, just open the index.html file in your web browser. You can also play with a free suite of business apps I've made using those tools at https://cherrypc.com/app/ Finally, learn by making stuff you want to make and have fun with it!
In Ask HN: Best way to get started with Web Development?
My preferred alternative is: - mustache(command line) + html - Firebase hosting (superstatic) I just install a command line version of mustache for example [1] and run it over simple static templates: `mustache data.json myTemplate.mustache > output.html` I only need to install superstatic[2] locally if I want to debug a rewrite rule or redirect otherwise clean URLs work pretty well with a simple setting. [1] https://github.com/janl/mustache.js/ [2] https://github.com/firebase/superstatic
In Building a fast, secured and free static site in less than three hours
Here is how mustache.js[0] does it: var entityMap = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': '&quot;', "'": '&#39;', "/": '&#x2F;' }; function escapeHtml(string) { return String(string).replace(/[&<>"'\/]/g, function (s) { return entityMap[s]; }); } also document.createTextNode will tell the browser not to render the children as html, whereas appending a dom element and innerHTML will.[1] I'm just assuming that behavior is correct in all browsers though. [0]https://github.com/janl/mustache.js/blob/master/mustache.js#... [1]https://jsfiddle.net/1dsygwoj/
In Show HN: MapChat – A simple location based chat in 300 lines of code

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.