Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TemplateFactory don't create the strongly typed template base. #31

Closed
davifiamenghi opened this issue Jan 3, 2014 · 0 comments
Closed

Comments

@davifiamenghi
Copy link

I have implemented a custom template MvcTemplate<TModel> : MvcTemplate : TemplateBase and in the config file <templates baseType="MyNamespace.MvcTemplateBase```1, MyAssembly" language="C#" ... /> but the generated code inherits from MvcTemplateBase, but I NEED it to inherit MvcTemplateBase<TModel>.

Am I doing something wrong?

I don't have the have the code here, but as far as I remember, I got this workarounded passing the model type to Factory.CreateTemplateInstance then to CreateBucket and changing the XiptonEngineHost.DefaultBaseClass to MvcTemplate<MyModelType>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant