Separating header and cpp files?

The internet tells me to implement templates this way, although I'm not quite fully familiar with it yet. Here's a link that explains it pretty well
http://www.codeproject.com/Articles/48575/How-to-define-a-template-class-in-a-h-file-and-imp