Made widgetDefinition.template a string.