Search code examples
javascripthtmlfrontendtemplatingclient-side-templating

html/javascript: templating options in regular html


Converting a project from django into a flask API backend + backbone.js frontend

It was nice to be able to do {% include %} options in the HTML in order to make it more modular, i.e. I was able to separate out a discrete navbar.html, base.html, etc.

Is there an easy way to recreate this same structure in the absence of a web framework and if I am just building a frontend in HTML / JS?


Solution

  • There are a lot of options, try searching. I usually go with Mustache or Handlebars