Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 931
Jesse James Avatar asked Oct 31 '22 04:10

Jesse James


1 Answers

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.

like image 127
Matthew Avatar answered Nov 12 '22 17:11

Matthew