D
D
Dmitry Filandor2017-09-27 17:39:55
HTML
Dmitry Filandor, 2017-09-27 17:39:55

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

2 answer(s)
M
MrDywar Pichugin, 2017-09-27
@Dywar

Look at " Ready ASP.NET Solutions for Building Websites ".
2) Changing the template can make a non-automatic, manual sync difficult for the user.

U
Uno, 2017-09-28
@Noizefan

And what will take more disk space, a row in the database or a separate html file?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question