OT: Converting existing html to Jade

765 views
Skip to first unread message

cscade

unread,
Jun 14, 2011, 9:08:07 AM6/14/11
to Express
This is offtopic, but I'm curious and don't know where else to ask. Is
there a command line tool to convert existing (well formed) html to
Jade? I would like to start integrating jade/bin into some of my non-
express projects, and manually converting all my html will be time
consuming to say the least.

I looked into scalate, but was unable to to get it to operate on OSX
10.6.

mcoolin

unread,
Jun 14, 2011, 9:15:04 AM6/14/11
to expre...@googlegroups.com

Carson Christian

unread,
Jun 14, 2011, 9:41:22 AM6/14/11
to expre...@googlegroups.com
Outstanding!

--
Carson Christian

On Jun 14, 2011, at 9:15 AM, mcoolin wrote:

https://github.com/donpark/html2jade/blame/master/README.md



--
You received this message because you are subscribed to the Google Groups "Express" group.
To view this discussion on the web visit https://groups.google.com/d/msg/express-js/-/2POg1wyBJPQJ.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.

Fernando Wermus

unread,
Jun 15, 2011, 11:34:55 AM6/15/11
to expre...@googlegroups.com
I would like to add something about your question. Doesn't exist a template wicket like? So I don't need to do any conversion at all?

Wicket like is:

<p wicket:id="label">[this will be changed dinamically]</p>

and when wicket template is applied it is changed for something like:

<p>This is the real text</p>

Thus I don't need any conversion at all! This is quite simple.

2011/6/14 cscade <csc...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Express" group.

Carson Christian

unread,
Jun 16, 2011, 12:06:45 PM6/16/11
to expre...@googlegroups.com
For me, the advantage of Jade isn't just that it provides "live templating". What makes it worthwhile for me is speed of page design. I can bang out Jade by hand MUCH faster than HTML by hand, simply because Jade essentially contains zero excess markup.

You only need to tell Jade exactly what you want, and all the dirty work of nesting, closing, etc is done for you. Add to that the amazing power of inline arbitrary JS when paired with express, and you have something that is far more powerful than [bracketed] find and replace.

--
Carson Christian
Reply all
Reply to author
Forward
0 new messages