Hi,

I've been experimenting with adding a custom tag to Page, which works
when I have:

module UiTags
  include Radiant::Taggable

  desc "Returns the server host name"
  tag 'lsi:hostname' do |tag|
    CGI.escapeHTML(request.host()) unless request.nil?
  end
end

but not:

module UiTags
  include Radiant::Taggable

  desc "Returns the server host name"
  tag 'hostname' do |tag|
    CGI.escapeHTML(request.host()) unless request.nil?
  end
end

I get an error 'lsi' tag not defined… Which is strange since other
extensions use the prefix:name form. Radiant 0.9.1 and Rails 2.3.8.

Is it because I'm injecting the tags into Page via Page.send :include,
UiTags in the activate method of the extension initialisation code?

Marc

Reply via email to