Answer the question
In order to leave comments, you need to log in
How to generate html document from php using js?
Good afternoon, I need to generate html from a php file in full format, directly as php does and is displayed in the browser console. I think it’s quite clear why, but still, I want to typeset in blocks, but when certain pages are completed, generate html, like how a task in gulp from scss does, everything is generated in css.
<?php include("widgets/header.html"); ?>
<main class="main">
<?php include("widgets/pages/main.html"); ?>
</main>
<?php include("widgets/footer.html"); ?>
Answer the question
In order to leave comments, you need to log in
PHP generates a template on the server side.
In your code that you are including there is html markup.
The generation approach of the server language is different. Gulp is a package tool that makes it easy to code and implement front-end features.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question