Best Practice for bundling data files with component templates?

@gcincilla I once created this approach where a code file is being created from inside a node and then be stored in a sub-path. Not very elegant but it does work.