I’ve often wanted to extend Prototype’s Template class
to allow setting default values for template fields if the user doesn’t pass them, so I wrote a simple
wrapper class that does just that.
default values for anything not passed by the user to .evaluate();
Of course, you will need to include the prototype library for this to work.