I\'m new to Mustache.
Many templating languages (e.g., Django / Jinja) will let you extend a \"parent\" template like so...
I recently found myself in the same boat, except I came from a mako background.
Mustache does not allow for template extension/inheritance but there are a few options available to you that I know of.
You could use partials:
{{>header}}
Hello {{name}}
{{>footer}}
You could inject template pre-processing functions into the context for each template that needs to inherit from some other page:
{{#extendBase}}
Hello {{name}}
{{/extendBase}}
Hash:
{
"name": "Walden",
"extendBase": function() {
return function(text) {
return "" + render(text) + "