You can add do that by defining your own tag in the application.dryml

<def tag="my-custom-tag">
  <!-- what ever you want inside the tag -->
</def>

and keep this tag where ever you want , in /app/views/cars/index.dryml or
if you want it appear on all the pages , extend it on the main <page> tag
like this

<extend tag="page">
  <old-page merge>
    <append-head:>
      <!-- this goes into the <head> tag in html render -->
    </append-head:>
    <header:>
      <my-custom-tag />
    </header:>
  </old-page>
</extend>

Im also learning hobo and i generally read others code on how they are
doing stuff. you must start doing it too :)

Vivek



On Wed, Jan 30, 2013 at 12:24 AM, B. Chaiken <[email protected]> wrote:

> Thank you!
>
> I have been hacking away at this. So far, I like Hobo. Another quick
> question, I am familiar with rails, however, with this new hobo
> application, I cannot find the "app / views / layouts /
> application.html.erb", to add content (meta tags, etc.). I know hobo is
> dryml, not erb. But I want to find the actual layout, similer to the app
> file in rails. What am I missing?
>
>
> On Sunday, January 27, 2013 9:58:58 PM UTC-5, Vivek Sampara wrote:
>
>> Keep this code in the application.dryml or admin_site.dryml depending on
>> which nav you want to edit.
>>
>>
>> On Mon, Jan 28, 2013 at 8:28 AM, Vivek Sampara <[email protected]>wrote:
>>
>>> This is how i do it
>>>
>>>
>>>
>>> <def tag="main-nav">
>>>   <navigation class="main-nav" merge-attrs param="default">
>>>
>>>
>>>     <nav-item href="#{base_url}/">Home</nav-**item>
>>>     <nav-item href="/abc">ABC</nav-item>
>>>     <nav-item href="/def">Def</nav-item>
>>>
>>>     <nav-item href="/efg">efg</nav-item>
>>>   </navigation>
>>>
>>>
>>> </def>
>>>
>>>
>>>
>>> On Mon, Jan 28, 2013 at 7:09 AM, B. Chaiken <[email protected]> wrote:
>>>
>>>> Ok, so I am 24 hours new to Hobo. I have a working app up. I created a
>>>> page, and now I simply just want to edit the navigation tab name to it. How
>>>> exactly do I do this?
>>>>
>>>> --
>>>> 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 hobousers+...@**
>>>> googlegroups.com.
>>>>
>>>> Visit this group at 
>>>> http://groups.google.com/**group/hobousers?hl=en<http://groups.google.com/group/hobousers?hl=en>
>>>> .
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>
>>>>
>>>>
>>>
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/hobousers?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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


Reply via email to