evanrmurphy / SweetScript

A lispy language that compiles into JavaScript, strongly influenced by Arc.
https://github.com/evanrmurphy/SweetScript
14 stars 4 forks source link

Have tag accept an attributes hash or no attributes argument at all #1

Open evanrmurphy opened 13 years ago

evanrmurphy commented 13 years ago

Currently:

(tag input (type "text")
  (tag ul ()
    (tag li () "apples")
    (tag li () "bananas")))

Hopefully:

(tag input {type "text"}
  (tag ul
    (tag li "apples")
    (tag li "bananas")))