Bradford R. Bowman wrote:
> To answer my own question, though I'm not sure it's will benefit anyone
> in particular, this is what I did in index.html.quick:
>
> entry_content: |
>   
>   <div class="<%= entry.id.split("/")[0] %>">
>       <%= entry.content.to_html %>
>       etc...
>
> Or at least, that's the concept.
>   
Yeah, I would say that's a much better idea than what I was going to 
offer.  Two things that spring to mind:

* You might try using <%=entry.tags * " "%>.  The list of tags includes 
the category and any tags you've given the entry.  It might be nice to 
style based on tags.
* If you decide that you need to layout entries totally differently, 
based on their content, you can subclass Hobix::BaseEntry.  If you look 
in hobix/entry.rb, you'll see an example in the Entry class.  It's 
probably overkill, though, and you'd probably better off just using 
Textile to layout the entries.

Good luck, let us know how it turns out.

_why
_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to