Dave,

I agree with the other responses, but here's a sample of what you
might be able to do:

<r:table>
  <r:column />
  <r:column />
</r:table>

----------------
tag 'table' do |tag|
  returning String.new do |output|
    output << "<table>"
    output << "<tr>" << tag.expand << "</tr>"
    output << "</table>"
  end
end

tag 'table:column' do |tag|
  "<td>\n xxx\n</td>"
end

Obviously that's very rough and just an outline of what you might want
to do.  If your end users are HTML/CSS proficient, then just use HTML!
Radiant is nice in that it gets out of your way in terms of design.

When you need something programmatic, then consider using Radius tags.

Sean

On 7/5/07, dave4c03 <[EMAIL PROTECTED]> wrote:
> I am trying to avoid XSLT if possible, I would like to leave XSLT behind
> me:)
>
> For a simple example, let us say a page contained the following radiant
> tags:
>   <mytable>
>     <mycol/>
>     <mycol/>
>   </mytable>
>
> And I wanted it to generate the following html:
>   <table>
>     <tr>
>       <td>
>         xxx
>       </td>
>       <td>
>         xxx
>       </td>
>     </tr>
>   <table>
>
> Can custom radiant tags be constructed to do this?
>
> On 7/5/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> >
> > Yes and no.  There are many available tags for manipulating content,
> > but they primarily manipulate existing content in the CMS, i.e. pages,
> > page-parts, snippets, and layouts.  Can you give an example of the
> > source you want to transform and the result of its transformation?
> >
> > Of course, there is always the possibility for a custom extension that
> > processes XML and XSLT using libxml2/libexslt.  That would be kind of
> > neat, in fact.
> >
> > Sean
> >
> > On 7/5/07, dave4c03 <[EMAIL PROTECTED]> wrote:
> > > Can radiant tags replace simple XSLT?  For example, how would I create a
> > > <mytable> tag that wrapped n <mycol> tags?
> > > _______________________________________________
> > > Radiant mailing list
> > > Post:   [email protected]
> > > Search: http://radiantcms.org/mailing-list/search/
> > > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> > >
> > _______________________________________________
> > Radiant mailing list
> > Post:   [email protected]
> > Search: http://radiantcms.org/mailing-list/search/
> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
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