custom fields in custom template?

custom fields in custom template?

Hi,

How are the Custom Fields named in the templates?  i.e. the variables?  something like %CustomerBCustomField1%?

I'd like to use my own template, but I can't seem to find out how to insert the custom fields.

thanks!

J