News for hackers. Stuff that matters.
Re:Write HTML Faster with Sparkup (Vim and Textmate) by derwiki on Thursday March 04, 2010 @02:51PM (#1167851)
I like this, opposed to other solutions to HTML's verbosity, in that this is like a Vim macro language. Quick to type, then expanded to full formed HTML. No need for any other compilation or intermediate processing to HTML.
Re:Write HTML Faster with Sparkup (Vim and Textmate) by goodside on Thursday March 04, 2010 @05:10PM (#1168193)
The drawback, though, is that you can only use this to generate HTML quickly the first time you write it. Changing the code once it's generated is just as painful as it was when you were working with just HTML. This kind of write-only coding is like throwing away your source after every build.
Re:Write HTML Faster with Sparkup (Vim and Textmate) by jsiarto on Thursday March 04, 2010 @03:27PM (#1167928)
You can also get similar results with some of the Zen Coding plugins for Textmate: http://code.google.com/p/zen-coding/
Re:Write HTML Faster with Sparkup (Vim and Textmate) by mark_h on Thursday March 04, 2010 @05:26PM (#1168244)
Re:Write HTML Faster with Sparkup (Vim and Textmate) by CytokineStorm on Thursday March 04, 2010 @04:54PM (#1168155)
Anyone know where I can download the Zen Coding plugin? The link on Google Code seems to be broken.
Re:Write HTML Faster with Sparkup (Vim and Textmate) by marshally on Thursday March 04, 2010 @02:59PM (#1167868)
or you could just use HAML (or NHaml, GHRML, etc.)
Re:Write HTML Faster with Sparkup (Vim and Textmate) by bphogan on Thursday March 04, 2010 @05:11PM (#1168199)
While this is very cool for producing HTML, I still like HAML and StaticMatic better because it's reproducible. The Zen Coding plugin and this both look like they are just shortcuts, whereas HAML sticks around and gets expanded when I compile.

#sidebar.grid_4 => <div id="sidebar" class="grid_4></div>

And I don't lose that. I have no problem writing HTML with the shortcuts I already have - it's maintaining what's there that's the real pain, at least for me.

Re:Write HTML Faster with Sparkup (Vim and Textmate) by Dylanfm on Thursday March 04, 2010 @08:47PM (#1168576)
"If you are a fan of HAML but forced to use standard HTML in your projects this plug-in might make you a bit happier."

Sounds great to me.

Re:Write HTML Faster with Sparkup (Vim and Textmate) by stinkytaco on Thursday March 04, 2010 @09:01PM (#1168598)
How is this better than markdown? Or should I say, how is this different than markdown?
Re:Write HTML Faster with Sparkup (Vim and Textmate) by duck on Thursday March 04, 2010 @09:05PM (#1168603)
For one you can't do spans or divs, or apply classes and ids. Markdown isn't a replacement for HTML.
Re:Write HTML Faster with Sparkup (Vim and Textmate) by lambdom on Thursday March 04, 2010 @06:28PM (#1168372)
I think it misses a <ul> in the example.