Carp is for code templating.
You can use carp for a single file or for a tree of files and folders.
It makes it easy to take a folder of code files and subfolders, replace parts of text you want to be parameterized, and then store it. Later, you render that template by passing in the required parameters.
Get the code at github here.