S
S
Smenov2018-02-09 20:42:01
Web development
Smenov, 2018-02-09 20:42:01

How to start building a multi-page website?

Good afternoon!
Friends, I want to make several pages (10-15). What is the best way for a beginner to implement this in order to lay the right foundation for the future?
1. Make static pages for each material. (But here it confuses me that if you need to change at least one character in a repeating block, you will have to do this with all pages manually. Or is it solved through Gulp, for example?)
2. Divide into blocks and insert through php require ?
3. Trying to do it right away through some kind of framework, learning along the way?
Thank you!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dimonchik, 2018-02-09
@dimonchik2013

https://www.staticgen.com/

X
xmoonlight, 2018-02-09
@xmoonlight

First you need to create the page template itself and see how it will look in general.
includeHTML - can recursively load all the necessary parts located in different HTML files with ONE TAG or via Javascript.
(All scripts and handler scripts and CSS must be included in the template head file. In the HTML parts - only markup.)
Connect in the head section and write tags (example):
After you make the template, you can go to either pure PHP, or to any framework or CMS, and "pull" a ready-made and "CUT" AS NECESSARY layout onto this framework or CMS.

S
Socrates, 2018-02-10
@Karmov69

pug solves all these issues.
read about the pug template engine

A
Antonio Solo, 2018-02-10
@solotony

Use the constructor. If you want to save money - do it worthy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question