Separate src files into data and template