How to have multiple HTML pages have the same template layout?

This page summarizes the projects mentioned and recommended in the original post on /r/web_design

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • eleventy 🕚⚡️

    A simpler site generator. Transforms a directory of templates (of varying types) into HTML.

  • The simplest way to achieve this is to use a static site generator. They do require you to learn a programming language such as JavaScript, but since you mention Handlebars and jQuery, you should be fine with that. I recommend Eleventy. It's simple, powerful, and it enables you achieve almost anything you want. You can embed a front end framework if you wish. https://www.11ty.dev/

  • nunjucks

    A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)

  • Try out Nunjucks https://mozilla.github.io/nunjucks/ . It does exactly what you want.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts