Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Something like that, yes, but attributes (a (@ (href /path))...) are ugly in particular.

So use :named attributes instead?

  (a :href "/path" ...)


Nice indeed, but how about attribute names that themselves contain colons, or maybe start with a colon? XML/HTML is less restrictive in this regard: all that matters basically is spaces and '=' inside a tag.


Replace the colon with a dash in your attribute names. Easy solution.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: