Basics of Templating

Templates are basic structure or layout of our webpage which we want to replicate in each file of our website. To not do that manually we use templating engines which process templates as layout and file as target with some contextual data to give us resultant page which is combination of all those things.

Can't I create sites without templating?

Yes, You can create a site without templating but question is it that maintainable or readable? No, That's why we use templating engines to reduce boilerplate code (repeating code) and to make our site in a more programmatic way possible.

Nunjucks as Templating Engine

Chulbul uses nunjucks as templating engine which is a rich and powerful templating language for JavaScript by Mozila. It is prefered that you learn basic nunjucks templating before start.

Last Updated: 16/01/2021 Next Article