fogus/marginalia — pull request #59 by Raynes (2011-10-11 22:07:37+00:00)
Title: Manual parse

I recently ran into a few problems with how marginalia parses project.clj. There are a few things that cake can have in its project.clj that marginalia breaks on.

Now, I could just fix those kinds of compatibility problems when I come to them, but I think this is a better way to solve the problem. I've made it so that, when a user calls `run-marginalia`, he can pass an already-parsed project.clj file. This will allow for the build systems to all parse their own project.clj files (because they already do) and use that with marginalia.

This will also solve this issue https://github.com/fogus/marginalia/issues/20 by allowing people to add support to their build systems without ever touching marginalia itself.

I've updated the cake plugin in its own manual-parse branch: https://github.com/fogus/cake-marginalia/blob/manual-parse/src/cake/tasks/marginalia.clj

If you like this patch, I think my next step is to make header information extensible as well, that way you wouldn't need to have special cake/lein stuff in marginalia's core.