15 votes
PUG File - What is a .pug file and how do I open it?
Learn about .PUG files and view a list of programs that open them.
Languages
Overview
What is a PUG file? A PUG file is a template written in the Pug language, which is a shorthand HTML language that is used similarly to the Emmet and Markdown languages. It contains HTML code in the standard syntax but does not include closing tags and instead emphasizes indentations. PUG files are commonly used to create dynamic webpages, whereas .HTML files generally produce static webpages.
More Information PUG file open in Microsoft Visual Studio Code You will most likely only encounter a PUG file if you are a web developer utilizing the Pug templating engine for generating dynamic HTML webpages. Pug allows developers to create webpages with re-usable static markup, while inserting dynamic elements on the pages that will be filled with information from an external source, like a database, later. For example, a developer may use a PUG file when creating a website where employees of a company can update their personal information. The PUG template contains static markup for the page layout that makes the appearance similar for each employee. However, the template also stores dynamic elements, like an “employeename” tag, that is filled in with the employee name from the database when a user requests the page. Pug may be utilized on the frontend (executed in web browsers) or on the backend (executed with NodeJS, a JavaScript runtime environment) of a website. It is one of many JavaScript templating engines used by web developers, along with EJS, Mustache, Handlebars, HAML, Vash, and Nunjucks. NOTE: Pug was formerly known as Jade but was renamed in 2015.
Document Icon
Breadcrumbs
Previous / Next
In-Depth
.PUG File Extension
Pug Template
| Developer | Pug |
| Popularity |
3.7 | 15 Votes |
What is a PUG file?
A PUG file is a template written in the Pug language, which is a shorthand HTML language that is used similarly to the Emmet and Markdown languages. It contains HTML code in the standard syntax but does not include closing tags and instead emphasizes indentations. PUG files are commonly used to create dynamic webpages, whereas .HTML files generally produce static webpages.
More Information
PUG file open in Microsoft Visual Studio Code
You will most likely only encounter a PUG file if you are a web developer utilizing the Pug templating engine for generating dynamic HTML webpages. Pug allows developers to create webpages with re-usable static markup, while inserting dynamic elements on the pages that will be filled with information from an external source, like a database, later.
For example, a developer may use a PUG file when creating a website where employees of a company can update their personal information. The PUG template contains static markup for the page layout that makes the appearance similar for each employee. However, the template also stores dynamic elements, like an “employeename” tag, that is filled in with the employee name from the database when a user requests the page.
Pug may be utilized on the frontend (executed in web browsers) or on the backend (executed with NodeJS, a JavaScript runtime environment) of a website. It is one of many JavaScript templating engines used by web developers, along with EJS, Mustache, Handlebars, HAML, Vash, and Nunjucks.
NOTE: Pug was formerly known as Jade but was renamed in 2015.
Open over 400 file formats with File Viewer Plus . Free Download
Programs that open PUG files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
Pug
Free
Microsoft Visual Studio Code
Free
Sublime Text
Free Trial
GNU Emacs
Free
Any text editor
Mac
Pug
Free
Microsoft Visual Studio Code
Free
Sublime Text
Free Trial
MacroMates TextMate
Free
Panic Coda 2
Paid
Any text editor
Linux
Pug
Free
Microsoft Visual Studio Code
Free
Sublime Text
Free Trial
Vim
Free
Any text editor
Category: Developer Files
Updated: April 30, 2020