array $templates An array of templates (keys are the names, and values are the source code):
public function __construct(array $templates = []) { }