4 ms·
HTML is nothing more than a syntax that represents a tree of nodes with attributes, that's it, and there are other syntaxes that can also represent that same st
by gnaritas 18y ago
HTML is nothing more than a syntax that represents a tree of nodes with attributes, that's it, and there are other syntaxes that can also represent that same structure just as good.
When you have a language who's syntax is directly capable of representing that structure natively, it's a huge programmatic boon to simply write the markup directly in the host language.
In Seaside for example, since HTML is written in Smalltalk directly, I can use all of Smalltalk's automated refactoring tools on it, extracting methods, renaming things, pushing methods up and down the class hierarchy, etc. You can slice and dice pages in a way not possible with text files.
This is a huge advantage over raw HTML templates for the programmer. Seaside firmly insists that the programmer, not the designer, should be generating the proper markup; the designer has CSS. If this fits your work style, or if you're both the designer and the programmer, this style will benefit you and is much more enjoyable that raw HTML.
- davidw 18y ago> When you have a language who's syntax is directly capable of representing that structure natively, it's a huge programmatic boon to simply write the markup directly in the host language. IFF the other people you have to collaborate with, such as designers, artists, new programmers, etc... are all fluent in that language. That's a big 'if' in my opinion. I can hand someone a Rails template file, and they can hack at it even if they don't know Ruby.
- gnaritas 18y agoIt's not a big if at all, representing a tree of nodes with attributes in an alternate syntax doesn't change the semantics of the markup. If they know HTML, they can learn an alternate markup style in minutes, it ain't rocket science.