titanium 入门 3 Alloy: 惯例优于配置( convention over configuration)

访问量: 11447

alloy 框架跟Rails特别像: 


Contains the models, views, controllers and assets of the application. All work should be done here. See folder descriptions below.


Build configuration file.
See Build Configuration File (alloy.jmk).


Initializer file used to preconfigure components or override Alloy methods before the main controller is executed.
See Initializer File (alloy.js) for more information.


Project configuration file.
See Project Configuration File (config.json).


Contains image assets and other files that need to be copied into the Resources directory.
Reference these files in the code without the 'app/assets' path and without the platform-specific if it is inside one.


Contains controllers in the format filename.js to a corresponding view file app/views/filename.xml.
See Alloy Controllers for more information.


Contains application-specific library code, typically in the CommonJS format.
See Library Code for more information.


Contains database migration files in the format <DATETIME>_filename.js.
See Migrations for more information.


Contains model files in the format filename.js.
See Alloy Models for more information.


Contains view styling in the format filename.tss, which is applied to a corresponding view file app/views/filename.xml.
See Titanium Style Sheets for more information.


Contains themes to customize the assets and styles of the entire GUI.
See Themes for more information.


Contains views in the format filename.xml with the optional corresponding files app/controllers/filename.js and app/styles/filename.tss.
See Alloy XML Markup for more information.


Contains widget files. Each widget will have its own app-like directory structure.
See Widgets for more information.


Contains internationalization and localization files. Same usage as with a Titanium application.
See Internationalization for more information.


Contains the Titanium files generated by the Alloy interface from the app directory. All files will be overwritten each time the application is built.
Since Alloy 1.3.0, Alloy creates a separate Titanium project for each platform you build for in the Resources/<platform> folder.
See Compilation Process for more information.

订阅/RSS Feed