I have a problem with one of my ERB templates. I would like to display an
array containing class names. But I don't want to display every class, I
would like to display the top class only. If no top class exist, it should
show the sub classes. So input is something like this:
The output should be:
Currently I use a standard each on the array that display everything:
<% classlist.sort.uniq.each do |item| -%>
- <%= item %>
<% end -%>
Any ideas how to get this implemented?
Kind regards Thomas
Linux ... enjoy the ride!
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 view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.