jlong / radius

A small, but powerful tag-based template language for Ruby modeled after the ones used in MovableType and TextPattern. It has tags similar to XML, but can be used to generate any form of plain text (HTML, e-mail, etc...).
MIT License
101 stars 21 forks source link

Class level tags #4

Closed Papipo closed 14 years ago

Papipo commented 14 years ago

I can't see why tags are defined each time a Context instance is created. It should be possible to define tags at class level, so speeding up application performance, since tags don't need to be created at each request.

jlong commented 14 years ago

This sounds more like a Radiant issue. There is no reason that a context cannot be reused between invocations. And the block syntax allows the context to be aware of the scope around it. I don't think there is much to be gained by adopting a different syntax.