On Mon, Feb 4, 2013 at 7:37 PM, David Kerr <ker...@gmail.com> wrote:

> <% @foo = 0 %>
> <% Array(bar).each do |flan| -%>
> value <%= @foo %>
> <% @foo += 1 %>
> <% end %>
>

This code worked for me.  I just used an inline template, but otherwise I
had exactly what you had:

link: https://gist.github.com/arusso23/4712284

(I'm on 3.0.1 btw)

Cheers,

Aaron Russo
IST Infrastructure Services, Unix Group
UC Berkeley
---
Desk:   510-643-5550Mobile: 510-206-1532
IM:     aru...@berkeley.edu (XMPP/Jabber)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to