This documentation relates to previous versions of Titanium Studio.

To see the latest documentation, visit docs.appcelerator.com.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a templates directory in the bundle and add a project_templates.rb file in the templates directory.
  2. Add the following content to the project_templates.rb file:
    Code Block
    require 'ruble'
    
    project_template "Sample Project Template" do |t|
      t.type = :web
      t.location = "templates/sample_project.zip"
      t.description = "A sample project template"
      t.icon = "template.png" // Ideally a ruble-relative path to a 48x48px icon. Could also be a URL to a remote file
    end
    
  3. Replace the template name, "web", and "sample_project.zip" values with values appropriate to your project.
  4. Drop the file sample_project.zip in the templates folder.
  5. Save and close project_templates.rb.

...

  1. Create a templates directory in the bundle and add a project_templates.rb file in the templates directory.
  2. Add the following content to the project_templates.rb file:
    Code Block
    require 'ruble'
    
    project_template "Sample Remote Project Template" do |t|
      t.type = :web
      t.location = "git://github.com/repo.git"
      t.description = "Remote template. Requires network access."
      t.icon = "template.png" // Ideally a ruble-relative path to a 48x48px icon. Could also be a URL to a remote file
    end
    
  3. Replace the template name, "web", and "location" values with values appropriate to your project.
  4. Save and close project_templates.rb.

...