Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <9385853.fL9pMimAyI@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 06 Feb 2013 04:15:16 +0100 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 73 NNTP-Posting-Date: 06 Feb 2013 04:15:17 CET NNTP-Posting-Host: 877cecf1.newsspool3.arcor-online.net X-Trace: DXC=oG2`23\EbSOI7\_^6>c20JMcF=Q^Z^V3H4Fo<]lROoRA8kFYBYU3JEoMV[9Gnc^kegO X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:18359 Not usually reading Googlodytes, but FWIW … jr wrote: > I want to print a simple list using a js template in this order: There is no such thing as a “js template”. There is no single “js” language to begin with. > User, product list, benefit list, status. > I get a reference error on the value returned. > ReferenceError: i is not defined > > > I can tell what the problem is but I don't know how to solve it. > I need to use the {{#each}}{{/each}} function to count the number of > products and benefits. I just want to add the count of i on each, {{each}} > block to the returned options and context . I am not sure what this line > returns but I dont' need the values returned just the count. > ret = ret + options.fn(context[i]); > > >