7 ms·
Write HTML Faster with Sparkup (Vim and Textmate)
- derwiki 17y agoI 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.
- goodside 17y agoThe 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.
- marshally 17y agoor you could just use HAML (or NHaml, GHRML, etc.)
- jsiarto 17y agoYou can also get similar results with some of the Zen Coding plugins for Textmate: http://code.google.com/p/zen-coding/ http://code.google.com/p/zen-coding/
- CytokineStorm 17y agoAnyone know where I can download the Zen Coding plugin? The link on Google Code seems to be broken.
- mark_h 17y agoObligatory emacs link: http://www.emacswiki.org/emacs/ZenCoding http://www.emacswiki.org/emacs/ZenCoding
- lambdom 17y agoI think it misses a <ul> in the example.
- bphogan 17y agoWhile 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.
- Dylanfm 17y ago"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.
- stinkytaco 17y agoHow is this better than markdown? Or should I say, how is this different than markdown?
- duck 17y agoFor one you can't do spans or divs, or apply classes and ids. Markdown isn't a replacement for HTML.