Added basic templating support for fieldsets.