I'm seeing some interesting behavior (so to speak) with global tags  
(please correct me if that's the wrong term). If I have the following  
in app/behaviors/hello_behavior.rb:

class Behavior::Base
   define_tags do
     tag "hello" do |tag|
       "Hello World!"
     end
   end
end

I would expect to be able to write <r:hello/> in any page to render  
the text "Hello World!".

This seems to work fine on pages that do not have a behavior  
specified (i.e., the "Behavior" drop down is left at "<none>").  
However, if I select the Archive behavior, instead of "Hello World!"  
I get:

        <div><strong>undefined tag `hello'</strong></div>

Any thoughts? If it's a bug I'm happy to look into the cause. I just  
thought I'd ask on the list before I started spelunking.

- Sean

PS I'm running on trunk revision 114
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to