I declare this Hobo's most notorious error message.  :)

It means exactly what it says...  Hobo doesn't allow you to mix
parameters and tags in the same tag since it's ambiguous (or at least
misleading) how they would be laid out.

First, maybe get acquainted with nested parameters:
http://cookbook.hobocentral.net/manual/dryml-guide#nested_parameters

Now, I'm not quite sure your intent, maybe this?

 <index-page>
  <content-body:>
    <new-link:/>
    <page-nav:><br class="clear-both" /></page-nav:>
    <collection:/>
  </content-body:>
 </index-page>

(of course, <new-link:/> and <collection:/> are redundant since
they'll be filled in anyway)

Or this?

 <index-page>
  <content-body:>
    <a action="new" to="&model"/>
    <br class="clear-both" />
    <collection/>
  </content-body:>
 </index-page>



On Wed, Feb 11, 2009 at 8:18 AM, Andrew Shindyapin
<[email protected]> wrote:
>
> So I have an index page that I tweaked for a resources called
> CodeTests. This is the original, auto-generated index-page for
> CodeTests:
>
> <def tag="index-page" for="CodeTest">
>  <page merge title="Code Tests">
>    <body: class="index-page code-test" param/>
>    <content: param>
>      <header param="content-header">
>        <h2 param="heading">Code Tests</h2>
>        <p param="count" if>There <count prefix="are"/></p>
>      </header>
>      <section param="content-body">
>        <a action="new" to="&model" param="new-link"/>
>        <page-nav param="top-page-nav"/>
>        <collection param/>
>        <page-nav param="bottom-page-nav"/>
>      </section>
>    </content:>
>  </page>
> </def>
>
> So I tweaked the page as follows:
>
> <index-page>
>  <content-body:>
>    <!-- new-link: (doesn't work!) / -->
>    <a class="new-link" action="new" to="&model">New Code Test</a>
>    <br class="clear-both" />
>    <collection />
>  </content-body:>
> </index-page>
>
> However, when I use <new-link: />, I get an error about "mixed
> parameter tags and non-parameter tags (did you forget a ':'?) -- at
> app/views/code_tests/index.dryml:2" you can see the full error page
> here: http://gist.github.com/62098. Whenever I replicate the link from
> the original auto-generated index-page (as shown above), it works as
> expected.
>
> Can anyone shed any light on this error?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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