While I do not fully understand the export keyword (why it is so complicated), I can say that templates are complex, but nothing special.
The compiler just copies the code, replaced template parameters and thus embeds the code into the file which includes and uses the template. Basically.