Closed Neurogami closed 14 years ago
Some experiements suggest this is not so simple. It's easy to do file renaming based on file extension, not so obvious how to alter directory names. There needs to be some way to know, at a higher level, what sort of template is being evaluated so that the proper conventions are applied. One approach would to add a special file that defied certain aspects (language, for example). But the need for rhesus-specific cruft is unappealing. OTOH, it's easy to implement. Another option would be to embed this info in the template directory name:
haskell.basic # simple enough; grep for '.' delimited language names
jimpanzee.midi.rb # similar, but allows for common file extensions
Code in 0.4.0 now looks for a 'language' setting and more or less forces your code to use a particular file naming style. This is less than ideal, but is also less broken.
The app started out to handle Ruby code, but is handy for almost anything (such as layout out a Haskel project). But not all languages use the same CamelCase and snake_case conventions.
When the code is inventing file names it needs to follow appropriate language conventions.