DEV Community

Discussion on: Pug in 5 minutes

Collapse
 
jpkeisala profile image
Jukka-Pekka Keisala

I have done one project with Pug but I went back to HTML because it did not improve my productivity at all. I don't buy saving keystrokes since IDE's have code completion on HTML. Instead with pug I get constant indentation problems and it was harder to read that colour coded HTML in the IDE.
Pug just did not sit on my tooling at all.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

It is only partially about indentation, but also about closing tags.

Does any human (not html linter) needs named closing tags. Why not just closing brackets, or nothing (using indentation instead)? Like, I love build.gradle more than pom.xml.

Collapse
 
jh3y profile image
Jhey Tompkins

Yeah 💯

It's an interesting topic. Reminds me of this article about optional HTML and what the browser will put in for you if omit closing tags.

Funny how the thought of .xml to me seems more awkward than .html although they are similar syntax 😅 It's likely the thought of huge configuration exports from programs, etc.

Collapse
 
jh3y profile image
Jhey Tompkins

Totally get that it's not for everyone 👍

For me, I've not had a great experience of relying on IDEs for things like that 😅 However, I imagine if I was to give emmet a serious try, that could work out.

I try to split things up atomically where possible and use a rainbow indentation extension 😅
For me, it saves me a bunch when I'm working on demos etc. It's rare I use it for work though.