Jesse James
Jesse James

Reputation: 1223

Is there any way I can "convert" a ejs file to jade?

I have a ejs file that I would like to include in my jade-based app but I don't know how.

Upvotes: 5

Views: 3799

Answers (1)

Matthew
Matthew

Reputation: 667

I'm a little late here, but for those who searched this like I did:

There is a tool called html to jade: http://html2jade.org

It does not convert the embedded javascript part to pug/jade but it takes care of the html part and you can inject the js yourself.

Upvotes: 3

Related Questions