Yes there is code you write to pass templates & data connections to generate a report. But there is no code on a per template basis. Everything for a template is in the template itself. No code to write once it's all connected.