/*
This JavaScript code was generated by Jemplate, the JavaScript
Template Toolkit. Any changes made to this file will be lost the next
time the templates are compiled.
Copyright 2006-2008 - Ingy döt Net - All rights reserved.
*/
if (typeof(Jemplate) == 'undefined')
throw('Jemplate.js must be loaded before any Jemplate template files');
Jemplate.templateMap['body.html'] = function(context) {
if (! context) throw('Jemplate function called without context\n');
var stash = context.stash;
var output = '';
try {
output += 'Grocery List\n<ul>\n';
//line 5 "body.html"
// FOREACH
(function() {
var list = stash.get('list');
list = new Jemplate.Iterator(list);
var retval = list.get_first();
var value = retval[0];
var done = retval[1];
var oldloop;
try { oldloop = stash.get('loop') } finally {}
stash.set('loop', list);
try {
while (! done) {
stash.data['item'] = value;
output += '\n<li>';
//line 4 "body.html"
output += stash.get('item');
output += '\n';;
retval = list.get_next();
value = retval[0];
done = retval[1];
}
}
catch(e) {
throw(context.set_error(e, output));
}
stash.set('loop', oldloop);
})();
output += '\n</ul>\n';
}
catch(e) {
var error = context.set_error(e, output);
throw(error);
}
return output;
}