Metaprogramming in Radiant to solve a simple problem
I wrote about some simple metaprogramming in Radiant to solve an annoying problem of not being able to use custom tags in different contexts. Radiant includes custom tags in the Page model, and a popular option for managing stylesheets and javascripts prevents you from using these same custom tags in them. A few simple lines changes that.
Comments
The links is down!
But this works to me: http://www.saturnflyer.com/blog/jim/2010/06/29/ruby-metaprogramming-is-awesome
Sorry about that. I left out the http somehow. Link is fixed.
Post a comment