D
D
DmitryD1222019-09-26 00:44:43
HTML
DmitryD122, 2019-09-26 00:44:43

Preprocessor for static html - how to expand many blocks from a text file?

I want to make a simple html site on bootstrap with many blocks of the same type.
These are descriptions of laboratory works with several fields - number; title; the authors; section
Advise - is it possible to generate html, having some page templates using a selection from a text file with a list of works.
For example, on page 1 you need to have works only from section "A"
On the other - only from section "B", etc.
On the third - works sorted by numbers.
There are about 100 works in total.
It could be done in php + mysql, but I would like pure statics in html .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2019-09-26
@xmoonlight

Stalker_RED answered already.
I'll just add that you make a template, run a loop in PHP and save it to the structure you want "clean" HTML pages.
Optionally, you can include the twig template engine .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question