pmf
pmf

Reputation: 7749

T4 Templates: How to create a subtemplate?

Is there a way I can create a subtemplate within a template file in T4? I need to reuse a snippet of template within the same template and a embedded function does not allow template based reuse.

Upvotes: 1

Views: 308

Answers (1)

gerleim
gerleim

Reputation: 1409

You can use include.

<#@ include file="AnotherTemplate.tt" #>

Upvotes: 1

Related Questions