A couple of people have requested the ability to have DRYML taglibs
compiled during app startup, as opposed to the first time they are
used. This has a particular benefit with Passenger, as it allows the
memory used by the taglibs to be shared across the Passenger instances
(required Ruby Enterprise Edition? I'm not sure).
Anyway, it turned out to be extremely easy, just add lines like this
to an initialiser (e.g. config/initializers/hobo.rb)
Hobo::Dryml::Taglib.get :src => "taglibs/application"
If you're on edge, you can do this (just pushed to master):
Hobo::Dryml.precompile_taglibs
Which will find all .dryml files in your main taglibs directory and
any plugins, and precompile them all.
I'd be very interested to hear from anyone about improvements to
memory consumption as a result of this trick (Matt!)
Cheers
Tom