krawaller / kranium

Brains for Titanium
http://www.kraniumjs.com
Other
103 stars 13 forks source link

kui directory can support multi-level? #16

Closed milescui closed 12 years ago

milescui commented 12 years ago

Hi krawaller

When kui directory has many files, should how to organize them? kui directory can support multi-level?

thanks /Miles

krawaller commented 12 years ago

Kranium supports multi-level directories, but you'll have to specify the whole path in the type like so:

var customComponent = K.create({
    type: 'my/custom/component'
});

will pick up the file from Resources/kui/my/custom/component.js

milescui commented 12 years ago

great,Very useful.

thanks /Miles

milescui commented 12 years ago

Kranium will auto pick up the Kss file from Resources/kui/my/custom/component.kss?

thanks /Miles

krawaller commented 12 years ago

Almost right, but from Resources/kss/my/custom/component.kss

milescui commented 12 years ago

Thanks krawaller, that solve my problem. :)

/Miles