# Render\_tag

**URL:** <https://www.ruby-forum.com/t/render-tag/66743>\
**Category:** Radiant CMS\
**Created:** [August 28, 2006, 10:58pm UTC](https://www.ruby-forum.com/t/render-tag/66743 "2006-08-28T22:58:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smc7000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Post date:** [August 28, 2006, 10:58pm UTC](https://www.ruby-forum.com/t/render-tag/66743/1 "2006-08-28T22:58:32Z")

</div>

Quick question: Inside a tag definition block in my behavior, can I call  
render\_tag that is available to the Radius context? If so, what’s the  
proper syntax? I’d like to have a case where a tag can be used as a  
singleton or expanded, and I’d like not to repeat the contents of  
sub-tags  
inside their parent.

TIA

Sean C.  
[seancribbs.com](http://seancribbs.com)

---

<div class="post-metadata">

**Author:** ![smc7000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Post date:** [August 28, 2006, 11:12pm UTC](https://www.ruby-forum.com/t/render-tag/66743/2 "2006-08-28T23:12:36Z")

</div>

Sean C. wrote:

> Quick question: Inside a tag definition block in my behavior, can I call  
> render\_tag that is available to the Radius context? If so, what’s the  
> proper syntax? I’d like to have a case where a tag can be used as a  
> singleton or expanded, and I’d like not to repeat the contents of sub-tags  
> inside their parent.

The \<r:link /\> tag does that:

[http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page\_context.rb#L318](http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page_context.rb#L318)

The method is TagBinding#render.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![smc7000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Post date:** [August 28, 2006, 11:28pm UTC](https://www.ruby-forum.com/t/render-tag/66743/3 "2006-08-28T23:28:47Z")

</div>

John W. Long wrote:

> [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

Awesome, thanks!

Sean C.  
[seancribbs.com](http://seancribbs.com)

---

<div class="post-metadata">

**Author:** ![smc7000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Post date:** [August 30, 2006, 7:55pm UTC](https://www.ruby-forum.com/t/render-tag/66743/4 "2006-08-30T19:55:51Z")

</div>

Ok… helps if I read the documentation more carefully - the answer is  
yes.  
Thanks anyway!

Sean C.  
[seancribbs.com](http://seancribbs.com)

---

<div class="post-metadata">

**Author:** ![smc7000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Post date:** [August 30, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/render-tag/66743/5 "2006-08-30T19:43:49Z")

</div>

One more question about that, John. Does the tag.render call take into  
account the current nesting, or do I need to fully specify the tag?  
Thanks  
again.

Sean C.  
[seancribbs.com](http://seancribbs.com)
