9/22/2023 0 Comments Pugjs es literalsThe extension of all the pug files will be.Here are some of the very basic pug points which we need to remember while working with pug template engine. In this section, we will learn about the basics of Pug and how to work with the. Set up your view engine: app.set(‘view engine’, ‘pug’)Ĭhapter 02 – Pug – Installation | How to install Pug Template Engine? Pug – Basics.Install Pug into your project: npm install pug –save.Here are the steps to install and use Pug. You can literally install and start using pug in a couple of minutes. This is how we get the final rendered HTML at the end of the whole cycle.Ĭhapter 01 – Pug – Introduction | A Complete Overview Pug – Installation Now if you are a newbie developer or don’t know what is template engine then in easy words template engine allows us to inject data and then produce HTML.Īt run time environment, Pug replaces variables in our file or template with actual values, and then send the resulting HTML string to the client. Pug.js Tutorial Pug – IntroductionĪs we already mentioned at the starting of the tutorial that Pug is a template engine for Node.js. Having said that let’s get started with the Pug Tutorial. ![]() ![]() ![]() Before starting with the complete Pug Tutorial, if you want to read the official docs of PugJS, you can find it here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |