-
Notifications
You must be signed in to change notification settings - Fork 102
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
Pass object to template #58
Comments
Is this in any way different from how you'd use the classic t4? You should be able to instantiate and write code in a t4 template. |
Are you hosting the engine or using preprocessed templates? |
I tried to use hosting the engine, but i have little experience. |
I would recommend using a session:
If your template is set to be host specific, then parameters declared using a parameter directive will automatically access values from the session.
|
Are there any examples of using T4?
I want to pass an object from my application to a template.
Tell me, please, how can I do this?
The text was updated successfully, but these errors were encountered: