Pug template browser
But it is very easy to learn nonetheless. An additional issue is if you are working in a team, there are not many developers who are used to Pug template engine.
![pug template browser pug template browser](https://i.vimeocdn.com/filter/overlay?src0=https:%2F%2Fi.vimeocdn.com%2Fvideo%2F167767438_1280x720.jpg)
The whitespace and tabs mixing issue do hamper the productivity.
PUG TEMPLATE BROWSER MANUAL
On the other hand, constant conversion from HTML to Pug if you are using the third party embedded forms, forces an additional manual work. The availability of Gulp plugin was an added advantage for me as I use Gulp for my automation needs. I was attracted by Pug’s ability to force a coding standard, the use of indentations and natural way of writing the code, it provided. Let’s try to stay in the grey area instead of being polarized. Not exactly bad but definitely cumbersome to use. But then we have an inertia, we are always resistant to the change.Īt the cost of being diplomatic, I would like to say that Pug is good in some areas and bad in some areas. What I found out was, even though HTML is boring to type, feels unnatural, yet I was so used to HTML, it made me think twice, as to why I am switching from HTML. And make no mistake it has evolved a lot from the XHTML days to current HTML5.
![pug template browser pug template browser](https://img2.embroiderydesigns.com/StockDesign/large/Toy_Box_Collection/TS2037.jpg)
And just recently, the compiler has started showing the whitespace tabs error. Even Python 3 does not allow combining whitespaces with tabs. If you will mix and match tabs and whitespaces, the Pug template’s conversion to HTML won’t be possible. Pug doesn’t allow the combination of white spaces and tabs.
PUG TEMPLATE BROWSER CODE
Hence most of the readymade code such as MailChimp’s subscription form is available in HTML. HTML is the de facto standard in web development. But this defeated the purpose of simplifying things. So when I have to use them in my template, I have to convert it to Pug first and then included it.
![pug template browser pug template browser](https://image.shutterstock.com/image-vector/vector-cute-pug-illustration-600w-204025642.jpg)
MailChimp gives standard HTML code for such forms.
PUG TEMPLATE BROWSER PLUS
Plus if you are coming from Python background, it will be an added advantage because Pug will make you feel like home. A coding standard is forced on you which makes the teamwork and sharing of code easier than HTML. Indentations give the code a cleaner look.So my journey with the Pug template engine started.
![pug template browser pug template browser](https://image.shutterstock.com/image-vector/pug-vector-set-tshirt-logo-600w-1611305890.jpg)
I was ok with the additional step of transpiling Pug to HTML, as anyway, I had setup Gulp to automate the process. These two reasons were sufficient for me to try out this new cool kid on the block. It always felt extremely bloated and not so human-friendly. I am a Python programmer, hence I am habituated with indentations. Yes, that was the first and foremost reason, I liked Pug. So why I decided to try Pug template engine? But since the browser cannot understand pug files, they need to be transpiled to HTML. So basically an alternative to typing HTML. You need to create ‘.pug’ files and transpile them to HTML. For those who do not know what Pug templating engine is let me give a brief introduction. So when I heard of this new template engine Jade (It is now renamed as Pug), I was quite excited by it, as Pug required indentations and not opening and closing tags like HTML. I like all the cool and latest things that can increase my productivity as a developer.