-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
TMVCMustacheViewEngine and ViewDataset #330
Comments
workaround is to assign dataset to ViewModel. so ViewDataSet is obsolete? |
The only available methods to pass data to the template is to use one of the following indexed properties: property ViewData[const aModelName: string]: TObject read GetViewData write SetViewData;
property ViewDataset[const aDataSetName: string]: TDataSet read GetViewDataset write SetViewDataset; The other ones are deprecated. |
yes, my issue is related to : ViewDataset ; |
Can you provide a small self-contained example? |
I found the problem you are talking about. Did you tried templatepro engine? Are you starting a new project? |
Hi daniele! yes, in templatepro ViewDataset is correctly used. |
Now it should be fixed (all unit tests passes). Let me know if your problem has been fixed. |
Hi,
iI'm trying to use mustache to render a simple dataset, but i notice "TMVCMustacheViewEngine.PrepareModels" doesn't manage ViewDataSet, but only ViewModel.
and more... i don't find any usage of "ViewDataset" in dmvc, is not manage yet?
thanks
The text was updated successfully, but these errors were encountered: