Why use HTML and not HAML? -


in various forums , blogs, see people promoting haml , promoting html. advantages , disadvantages of using haml vs html?

i want understand i'm missing out on if use haml in favor of html (if any).

you trying compare apples oranges. browsers understand html. haml templating language gets transformed html (e.g. same final output). if find haml syntax easier html go it. imho - abstracting away actual elements generating makes applying css , doing javascript navigation more difficult.

personally if wanted "trim" html, put content tags (depends on serverside technology)

<!doctype html> <html> <head>...</head> <body>   <x:awesomelistthing data="$foo"/>    <x:foreach data="$bar">     <x:renderbazwidget/>   </x:foreach>   <div>random content hasn't been "tagified" yet.</div> </body> </html> 

then inside tag's template you'll able see actual html structure being generated.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -