Antaris/RazorEngine — Issue #11: TemplateService.Compile(razorTemplate, name) fails with error: The template type is a generic defintion, and no model type has been supplied.
Author: pmarflee
Created: 2011-12-02 09:09:49+00:00
State: open

Attempting to compile a modelless template fails with the above error. Looking through the source, the failure occurs because CompilerServiceBase.BuildTypeName expects modelType to be not null. However RazorEngine 2.1 allowed compilation of templates without a model. Is this a bug in v3?