I am not sure what to call this, dynamic templating is likely not the right term, but here is what I want to know if I can do :
- have a template which is used by many pages
- if I change that template, the webpages will auto update
For example, imagine I have a bunch of webpages which just display this on a page :
title: Guardians of the Galaxy
first impressions: awesome
Now I then want to change first impressions to "first thoughts" for every webpage which uses this template, so I go to the source template and change it there and every webpage which is generated from that template updates. I would also like it to be able to add sections (like say a date or whatever).
The template would just basically lay out the page, the display, etc. and in the actual pages they would just load this template and then add in the data to each section. Now obviously if I add a new section then each page lacking it would have to be individually edited.
I did a few searches, and they all seem to recommend php or similar. I think I can figure out how to do it with php, but is there a javascript/html only solution?