Having a user's changes actually saved to the code

Viewed 28

I'm working on a website currently and I was wondering if there is any way that a user could actually edit the code for the site. For example, services like WordPress or Squarespace allow users to edit text and it be saved on their live website, I was wondering how they achieve this and how I could implement this into my site.
Are they even actually allowing the code to be edited, or does it just look like it due to what's saved in a database somewhere? Or is the entire page worth of code uploaded to a database, and then it's loaded into the page via something like handlebars? Is there a best practice in this regard?

Thanks in advance!

0 Answers
Related