# Newbie tag question

**URL:** <https://www.ruby-forum.com/t/newbie-tag-question/63373>\
**Category:** Radiant CMS\
**Created:** [June 14, 2006, 5:46pm UTC](https://www.ruby-forum.com/t/newbie-tag-question/63373 "2006-06-14T17:46:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laserwhit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@laserwhit](https://www.ruby-forum.com/u/laserwhit)\
**Post date:** [June 14, 2006, 5:46pm UTC](https://www.ruby-forum.com/t/newbie-tag-question/63373/1 "2006-06-14T17:46:04Z")

</div>

I need to find a way to add a css class to alternating children (much  
like the “cycle” helper in regular rails apps), and after looking at  
page\_context.rb it seems to me that the natural way to do this would  
be to extend the “children:each” tag like:

\<r:children:each css=“one\_class, two\_class”\>

where the the comma separated css values are applied to alternating  
children.

What I can’t seem to figure out is:

1. Is it possible to alter page\_context.rb, save the file, and then  
dynamically reload it without having to stop/restart the server?

2. How does one go about creating a new tag to handle the new css  
class feature? For instance, each child has a corresponding \<r:title  
/\> tag, how do I go about creating a \<r:css /\> tag? Or, is this the  
wrong way to do things entirely?

Any help would be greatly appreciated!
