I'd like to do something like this:

<show-page>
  <% fields = ['rock', 'kind']
        fields << 'channel' if this.channel
        fields << 'episode' if this.episode
        fields << 'parent']  -%>
  <field-list: fields="&fields.join(',')"/>
</show-page>

Problem is, this produces the dreaded "mixed parameter tags and
non-parameter tags (did you forget a ':'?) -- at
app/views/permids/show.dryml:1" error.  Surprising since the ERb block
shouldn't produce any output.

I worked around it by doing the following, but...  ick.  There must be
a better way?

<show-page>
  <field-list: fields="&['permid', 'kind', this.channel ? 'channel' :
this.show ? 'show' : this.episode ? 'episode' : 'show',
'parent'].join(',')"/>
</show-page>


Thanks for any suggestions.

    - Scott

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to