I think people should write HTML in HTML, CSS in CSS, Javascript in
Javascript, and Ruby in Ruby.
I don't get the fascination with DSLs for existing domains. DSLs for your
own stuff is okay, where you need something that is more complex than a
bunch of functions and less complex than a full blown
I think people who want to write HTML in HTML should write HTML in HTML.
I think people who don't want to write HTML in HTML should write it in
something they prefer.
Just my humble opinion.
--Isak Andersson
Den 2011-12-29 02:14:18 skrev Anthony Durity gravi...@jollyrotten.org:
I think
I think people who don't want to write HTML in HTML should write it in
something they prefer.
i like to write HTML in Ruby, {attr: :val} for elements, [] for lists of
elements, and for..strings
def H _
case _
when Hash then
''+(_[:_]||:div).to_s+(_.keys-[:_,:c]).map{|a|
'
3 matches
Mail list logo