Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Vue allows you to use Pug syntax in your templates, so this can be even simpler:

  button(:disabled='isButtonDisabled') Button
  div(:id='`list-${id}`")
  form(@submit.prevent='onSubmit')
  a(@click='doSomething')


I'm sorry but that is hideous.

JSX is incredibly simple. Why would you do that to yourself and other devs?


Eloquently put.


And Pug amkes this... cleaner and prettier than JSX? I'm afraid not.

And it's far from being simpler




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: