Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 205283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:32:33+00:00 2026-05-11T17:32:33+00:00

I think I understand the basic principals of T4 but I’m having a hard

  • 0

I think I understand the basic principals of T4 but I’m having a hard time figuring out how to apply it to my particular situation.

I have an application that display lists of objects of some kind – doesn’t matter what. I want to allow the users to select 1 or more of these objects and submit them to any template. The template could generate, for example, an html file describing the objects or a powershell script to manipulate them in some way or whatever.

The thing I cant figure out is how to pass the selected objects into my custom host.

I could create an extensive tt include file that called my own api to retrieve these objects from their storage, but this seems silly when I already have instances of the objects in scope and I just want to examine them to produce some text output.

I hope this makes sense…

I have tried adding properties to my host and then using the hostspecific setting I thought I could use the objects via these properties but all I get is errors about serialization and such stuff.

A really good example of how to do this would be fantastic 🙂

Thanks

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:32:34+00:00Added an answer on May 11, 2026 at 5:32 pm

    Perhaps this article will answer your question. “Standalone Template” may be the best design option. Other options are environment variables and external files. However, I hope you decide against using a custom host (unless you want to have your own, unique flavor of T4, likely incompatible with any other T4 host out there) and use TextTransform.exe instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I understand strong typing , but every time I look for examples
I understand the basic principles of inheritance in OOP, but I have a specific
I'm learning C++ from book. I think I understand basic concept but the book
I think I do understand the basic IDEA of move semantics, but now when
I understand (I think) the basic idea behind RESTful-ness. Use HTTP methods semantically -
So I (think I) understand the difference between Float, Double, and Decimal , but
Just want a basic understand of what parts a email message may have. I
I (think I) understand the purpose of dependency injection, but I'm just not getting
I think I understand the basic concepts of MVC - the Model contains the
I think I'm on the right track to understand the basic concepts of git.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.