Currently it's only possible to use the static config object to configure a template. Sometimes you need more control and a dynamic api so you can add event handlers or helpers during runtime.
@comerc already laid out the most important parts here: template 2