The .lpt template:
Public ReadOnly Property ProjectName
Get
Return <%=_executingGenerator.ProjectDefinition.ProjectName%>
End Get
End Property
You then bind that to a templateid in a templatebindings file, say Include_ProjectName and use that templateid as an include statement inside a TDL template:
' your TDL code here
' include the .lpt template
<# Include_ProjectName #>