Branksy
Branksy

Reputation: 101

Mass convert Vue.js templates into Pug format

Is there a way to mass convert existing Vue.js templates (single file components) into Pug (Jade)?

Something similar to the erb2slim gem for rails.

I find Pug much more legible and its impractical to rewrite an existing open source project.

Many thanks.

Upvotes: 1

Views: 1102

Answers (1)

Justin MacArthur
Justin MacArthur

Reputation: 4050

There are a few Jade converters like Html2Jade as you're just converting the html. It even appears to keep vue directives including shorthand :bind and @on.

The downside is that it's a manual converter so you will have to paste in each component separately.

Upvotes: 1

Related Questions