radius icon indicating copy to clipboard operation
radius copied to clipboard

Non-prefixed Tags

Open trans opened this issue 16 years ago • 3 comments

I'd like to request a feature. I'd like to be able to use Radius tags without having to set a prefix. Eg.

  parser = Radius::Parser.new(context, :tag_prefix => nil)
  puts parser.parse(%{A small example:\n<repeat times="3">* <hello />!\n</repeat>})

Is that feasible?

trans avatar Jun 16 '09 20:06 trans

Probably not a good idea since the namespace would clash with html tags

austinthecoder avatar Mar 05 '10 18:03 austinthecoder

I'm not opposed to this. See if you can get it worked out and send a pull request.

jlong avatar May 23 '10 20:05 jlong

It would be interesting to add support for non-prefixed tags containing hyphens. That way they would not clash with the HTML namespace, and Radius could be used as a preprocessor for custom HTML tags of the type proposed in the upcoming Web Components spec.

I would definitely have a use for this. And coding it might be beyond my knowledge, but I'll have a go.

andybrice avatar Mar 14 '14 15:03 andybrice