Some time ago I started using Mustache in apps I write to make tedious task of
well and fits my needs. There’s one problem, however. When I first tried to use
the Mustache template in browser I found that it was pretty much impossible.
Somewhere in the Internets I found someone’s post where he suggested we should
use wrap Mustache code in
script tag with
text/html type. At first I was
like WTF? but then I was like Including all the templates in every HTML?
Srsly? because this method wouldn’t work when loading templates from files.
I was stuck.
The script is pretty much functional with some rough edges (most notably almost nonexistent exceptions handling that’ll cause tracebacks being written to output). It works for me. If something doesn’t work for you feel encouraged to use GitHub to file an issue or fork and fix. You know the drill :).