Nav's are fairly simple, but it does appear that the documentation is a
little light. <navigation> is a <ul> and <nav-item> is a <a> wrapped
in a <li>. So the only "tricky" part is understanding the hobo magic
<a>. Sometimes it's easier to bypass the magic by using the href
attribute. Here's the updated docs for nav-item:
Renders a single item in a [`<navigation>`](/api_tag_defs/navigation).
`<nav-item>` is basically an [`<a>`](/api_tag_defs/a) tag wrapped in an
`<li>` tag. The attributes for [`<a>`](/api_tag_defs/a) may all be used
on this tag, and work the same way.
Example 1: explicit links. Note that we're using explicit routes for
clarity. Named routes are better.
<navigation current="home">
<nav-item href="/">Home</nav-item>
<nav-item href="/logout">Logout</nav-item>
</navigation>
Example 2: navigation based on a collection of items. Each item will be
transformed into a link as described in [`<a>`](/api_tag_defs/a).
<navigation with="&links">
<repeat>
<nav-item/>
</repeat>
</navigation>
Bryan
Jeremy Savoy wrote:
Actually after looking at the code the cookbook doesn't really do what
I want to do .... going to have to think about how to do this for a
bit, considering my low level of experience with Hobo ... any pointers
would be welcome.
On Apr 21, 7:48 am, MichelV69 <[email protected]> wrote:
On Apr 20, 1:33 pm, Jeremy Savoy <[email protected]> wrote:
LOL - Of course I guess what I want is something similar to the
cookbook layout itself, should have realized this. Although its
probably not exactly what I'm wanting since the cookbook seems to be
full of mostly static content .... but I'm sure there is enough
example in the cookbook code to figure this out.
--jeremy
I'd love to see what you come up with when you are done. I am going
to have the same issue to deal with soon in another project and seeing
how someone else handled it would be very helpful.
--Michel
--
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
athttp://groups.google.com/group/hobousers?hl=en.
--
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.