With the original subsites you could include a taglib from the
controller with something like this:

include_taglib 'taglib_name'

On Feb 10, 4:15 am, sam-o <[email protected]> wrote:
> Hello,
>
> We are developing a hobo app with a few developers. The problem is,
> that the taglibs are quite "centralistic" and we often run into
> conflicts when different users updating the taglib. I think it would
> be better to have the taglibs for the different models in their rails
> view paths (e.g.  app/views/foo/forms.dryml , app/views/foo/
> cards.dryml). Of course this includes could all be done manually in
> the "taglibs/application.dryml" but it would be nice to have that done
> automatically. I have tried something like this...
>
> ActionController::Base.view_paths.each{|view_path|
>   view_folders = Dir.new(view_path).entries.map{|entry|
>     path = view_path.to_s+"/"+entry
>     entry == "." || entry ==".." || !File.directory?(path) ? nil :
> path
>   }.compact
>   view_folders.each{|view_folder|
>     [view_folder+"/forms.dryml", view_folder+"/cards.dryml"].each{ |
> taglib|
>       if File.exists?(taglib)
>         # INCLUDE THE TAGLIBRARY SOMEHOW?!
>       end
>     }
>   }
>
> }
>
> but it doesn't  seem possible to have ruby code in  "taglibs/
> application.dryml" to be executed on template parsing. Anybody knows a
> solution?
>
> Thnx,
> sam
--~--~---------~--~----~------------~-------~--~----~
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