componentjs / spec

Component specs
34 stars 4 forks source link

data attribute for JSON #27

Closed jonathanong closed 10 years ago

jonathanong commented 10 years ago

don't like mixing JSON and scripts.

{
  "scripts": ["index.js"],
  "data": ["stuff.json"]
}
ianstormtaylor commented 10 years ago

we got one :)

https://github.com/component/builder.js/blob/master/lib/builder.js#L58

jonathanong commented 10 years ago

oh crap. i've been putting json in my scripts this whole time. i think data is better but whatever. well close this when we add it to the spec