Radius uses a really naive parsing method -- regular expressions -- so it won't try to match the <a> tag, and your Radius tags can appear anywhere.

Nate Turnage wrote:
On Wed, Jan 28, 2009 at 11:12 AM, Mohit Sindhwani <t...@onghu.com> wrote:

So did I!  So, I wrote this for you:
 tag 'local:natelink' do |tag|
  part = tag.locals.page.parts.find_by_name('link')
  url = part.content
  "<a href=\"#{url}\">This is a link</a>"
 end

Darn!


Thanks anyway. This really makes me think that I need to bone up on my rails
fu and ruby fu.

I need about 2 hours more per day.


~Nate
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to