Making custom tags easier to create

26 views
Skip to first unread message

Jim Gay

unread,
Aug 28, 2012, 3:29:00 PM8/28/12
to radiant...@googlegroups.com
I've often been frustrated by how complex and unweildy custom radius
tags can become.

I've created a gist of 2 ideas for cleaning this up.

https://gist.github.com/3500369

Basically, if you look at the definition for <r:content /> it is so
large and difficult to understand that I'd rather have some other
object control the output. Additionally, but relying on another object
we can better provide hooks for altering the behavior of tags.

What I want to be able to do by refactoring how we create custom tags is:

- make the code clearer
- make the tag easier to test
- make the tag easier to extend
- make it easier to provide translations for tag descriptions
- make it so the interface can build the tag help docs, rather than
require that we build a big string in the "desc" before the tag
definition

I'd love your thoughts

-Jim

--
Write intention revealing code #=> http://www.clean-ruby.com

Jim Gay
Saturn Flyer LLC
571-403-0338
Reply all
Reply to author
Forward
0 new messages