Calling a radius tag from my custom tag

Lets say I create a custom tag in an extension: <r:foo />

I want that tag to basically wrap some HTML around an existing radius
tag. In non working psuedo code:

tag ‘foo’ do
“Foo title: <r:title />”
end

In this contrived example, I could just use the ruby objects available
to the tag, but I want to encapsulate more complex radius tags. Things
like <r:navigation> for instance.

There has to be a simple way to do this, I just can’t quite figure out
the syntax.

Alex,

“Foo title: #{render_tag(‘title’)}” should work.

Sean

Sean C. wrote:

Alex,

“Foo title: #{render_tag(‘title’)}” should work.

Sean

Thanks I think I found it here:
http://github.com/seancribbs/radiant/tree/master/radiant/app/models/page_context.rb#L14

I should be able to add attributes and content to the tag with a hash
and black right?

render_tag(‘foobar’, :baz => ‘asdf’) do
“Tag content”
end

Thansk for the help!