Answer the question
In order to leave comments, you need to log in
What is the best way to build an HTML page builder algorithm?
Hello! There is a task: on the portal (written in asp mvc), give a person the opportunity to create his own (html) page and fill in his info - a logo, a picture, texts, meta tags, etc. ... that is, he chooses the appearance of the page (this is a list of simple landing pages) and at the next stage fills in the fields... something like a site builder....
wix , etc. and insert the required places - joxi.ru/8An0BeCqwP0XmO (template)
But there was another idea - to store the user's data not in the table, but to create a copy of the template for him in his folder on the server and save the information directly to the file (html template), the advantages of this approach:
1) speed - requests to the database are minimal, if not completely absent
2) flexibility - page templates can be modified and modernized, but the template of a user who already has a page is unchanged, he can optionally sync with a new
one. The only thing I don’t know is how to write information more correctly in the html template... in the loop iterate line by line and bind to some tags / idishka html elements, this is of course shit coding .... you can probably through serialization ...
I ask for advice from specialists ....
Answer the question
In order to leave comments, you need to log in
Look at " Ready ASP.NET Solutions for Building Websites ".
2) Changing the template can make a non-automatic, manual sync difficult for the user.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question