Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
105 views
in Technique[技术] by (71.8m points)

html - Is it possible to add just one page to existing sire project via PUG when the rest is written in simple HTML5?

So I have a simple site at hand, written with HTML5 and Less CSS. Now I have to add a market-page to it and I found a comprehensive guide on how to do that with ExpressJS + PUG + MySQL.

But before I do that I would like to know whether I'll have to convert the whole site project into new structure or I will be able to simply add a market page to already existing project without generally changing it?

question from:https://stackoverflow.com/questions/65890986/is-it-possible-to-add-just-one-page-to-existing-sire-project-via-pug-when-the-re

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You should be able to use Pug and HTML independently, however It's fairly easy to convert/switch between the two. There are plenty of conversion tools online (https://html2jade.org/), and while I don't recommend this- you might even be able to mix and match HTML within your Pug code.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...