| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 24 Dec 2025 08:35:19 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091120034646
location: https://web.archive.org/web/20091120034646/https://subsonicproject.com/docs/T4_Templates
server-timing: captures_list;dur=0.850224, exclusion.robots;dur=0.066154, exclusion.robots.policy;dur=0.052978, esindex;dur=0.014894, cdx.remote;dur=6.302678, LoadShardBlock;dur=974.998118, PetaboxLoader3.datanode;dur=908.175462, PetaboxLoader3.resolve;dur=26.630195
x-app-server: wwwb-app211-dc8
x-ts: 302
x-tr: 1010
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app211; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 24 Dec 2025 08:35:20 GMT
content-type: text/html; charset=UTF-8
x-archive-orig-cache-control: private, must-revalidate, max-age=0
x-archive-orig-content-language: en
x-archive-orig-expires: Thu, 01 Jan 1970 00:00:00 GMT
x-archive-orig-last-modified: Sat, 03 Oct 2009 17:39:25 GMT
x-archive-orig-vary: Accept-Encoding, Cookie
x-archive-orig-server: Microsoft-IIS/7.0
x-archive-orig-x-powered-by: PHP/5.2.9-1
x-archive-orig-x-vary-options: Accept-Encoding;list-contains=gzip,Cookie;string-contains=mediawikiToken;string-contains=mediawikiLoggedOut;string-contains=mediawiki_session
x-archive-orig-x-powered-by: ASP.NET
x-archive-orig-date: Fri, 20 Nov 2009 03:46:40 GMT
x-archive-orig-connection: close
x-archive-orig-content-length: 8339
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 20 Nov 2009 03:46:46 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_12_20091119224802_crawl103-c/51_12_20091120034359_crawl101.arc.gz
server-timing: captures_list;dur=0.690859, exclusion.robots;dur=0.026800, exclusion.robots.policy;dur=0.014075, esindex;dur=0.013795, cdx.remote;dur=222.549545, LoadShardBlock;dur=763.661369, PetaboxLoader3.resolve;dur=650.083623, PetaboxLoader3.datanode;dur=133.641935, load_resource;dur=85.537200
x-app-server: wwwb-app211-dc8
x-ts: 200
x-tr: 1108
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
T4 Templates - SubSonic :: Tome
T4 Templates
Summary
T4 stands for "Text Template Transformation Toolkit" and, simply put, is code generation inside Visual Studio.
It's very easy to work with if you're familiar with scripting ASP.NET pages - except that it works with a <#..#> syntax rather than <%...%>. Another thing to remember is that you're working with Visual Studio - not your project. The templates run in a completely different AppDomain - so you can't use your project's configuration without doing a little gymnastics.
To get you started, I made a screencast - complete with some music from Rush:
Double-click for full-screen
Troubleshooting
Having trouble with your t4 templates? Have a look at the SubSonic 3 Frequently Asked Questions to see the most common causes.
Retrieved from "https://subsonicproject.com/docs/T4_Templates"