I did it that way initially and that felt yuck too. I'll have another look tomorrow. Thanks.

Sent from my iPad

On 19 Feb 2013, at 19:00, Austin King <notifications@github.com> wrote:

> In lib/static/views.js:
> 
> > @@ -100,6 +100,17 @@ exports.setup = function(app) {
> >      next();
> >    });
> >  
> > +  app.get('/build/code_version.js', function(req, res) {
> From a maintenance perspective, it is confusing that have both a route and a scripts/generate_code_version.js that generates a static file.
> 
> We should choose one or the other... no?
> 
> Perhaps this route could be a middleware and would call scripts/generate_code_version.js if there is no code_version.js on disc?
> 
> —
> Reply to this email directly or view it on GitHub.
>