handlebars lightncandy php libary nested each statements lose access to variables established in previous loop Consider the following minimal example of handlebars Javascript.