Friday, October 16, 2009

SC Build Tools

Controllers

SproutCore comes with build tools to help you generate object from templates, one such example is to create a object controller

SC-gen  <ProjectName>.<controllerJSName>Controller

for ex:  "SC-gen HelloWorld.appController"

creates a "HelloWorld.appController" object in the file "app.js" inside the "controllers" folder of the application.

No comments:

Post a Comment