A demonstration of how templates work in Sencha Touch.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This Git repository includes all of the source code used in creating a two part tutorial about templates in Sencha Touch (part 1 and part 2).

Each of the links below represents a snapshot of the code at a point in the video (timestamps are in brackets). You'll find instructions below on how to check out each snapshot from this git repository.



Using this repository to follow the screencasts

First, you'll have to clone this repository:

git clone git://github.com/nelstrom/Sencha-Touch-templates-demo.git

Change into the directory:

cd Sencha-Touch-templates-demo

By default, the git clone command will only create the master branch locally. If you want to study the code at each checkpoint, you will have to fetch each of the other branches. You can do so by running the following:

git checkout -b 00_blank_slate origin/00_blank_slate
git checkout -b 01_constructing_templates origin/01_constructing_templates
git checkout -b 02_placeholders origin/02_placeholders
git checkout -b 03_formatting_functions origin/03_formatting_functions
git checkout -b 04_looping origin/04_looping
git checkout -b 05_nested_loops origin/05_nested_loops
git checkout -b 06_conditionals origin/06_conditionals
git checkout -b 07_numbering origin/07_numbering
git checkout -b 08_index_and_size origin/08_index_and_size
git checkout -b 09_parent_object origin/09_parent_object
git checkout -b 10_member_functions origin/10_member_functions
git checkout -b 11_sharing_member_functions origin/11_sharing_member_functions
git checkout -b 12_xtemplate_from_DOM origin/12_xtemplate_from_DOM
git checkout -b 13_serve_with_sinatra origin/13_serve_with_sinatra
git checkout -b 14_template_files origin/14_template_files

You can review the list of local branches by running:

git branches

And you can switch between branches with the checkout command. For example, to check out the 12_xtemplate_from_DOM branch, run:

git co 12_xtemplate_from_DOM