W dniu 18.06.2010 20:29, Joachim pisze:
> W dniu 18.06.2010 12:37, Joachim pisze:
>> W dniu 16.06.2010 18:31, Tom Locke pisze:
>>>> Do you know how can I tell Hobo to look for taglib in hobo_openid gem
>>>> directory?
>>>
>>> IIRC we handled :plugin => "hobo as a special case. Loading other taglibs 
>>> from gems is not supported yet.
>>>
>>> However you can give template-dir="..." and provide the absolute path. 
>>
>>
>> Thank you Tom I'll try that.
> 
> I tried
> 
> 
>         include_taglib "rapid_openid_user_pages", :template_dir =>
> "#{File.expand_path(File.dirname(__FILE__))}/../taglibs"
> 
> I checked that
> 
>     "#{File.expand_path(File.dirname(__FILE__))}/../taglibs"
> 
> returns proper path and file
> 
>     rapid_openid_user_pages.dryml
> 
> exists in that directory. But I still get error
> 
> No such taglib: /path/to/application/users {:template_dir=>"users",
> :src=>"rapid_openid_user_pages"}
> /path/to/application/users/rapid_openid_user_pages.dryml
> 
> what am I doing wrong?

I found taglib_filename in hobo-1.0.1/lib/hobo/dryml/taglib.rb and it
looks like it expects

    template_dir =~ /^#{HOBO_ROOT}/

so I'll need to do something ugly (like path
"#{HOBO_ROOT}/../all/../the/../way/../to/../root/my/path" ) and it won't
work if gems are on fiffent drives on OS that uses letters to mark drives.

Shall I file a bug/ did I miss something/ any ideas for workaround?

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