From 354fc01b110079afcbf3e41aef8dff0cf2dccbb2 Mon Sep 17 00:00:00 2001 From: booo Date: Thu, 20 Jan 2011 22:45:31 +0100 Subject: [PATCH] the birth of a config file --- config.js | 5 +++++ main.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 config.js diff --git a/config.js b/config.js new file mode 100644 index 0000000..d21a673 --- /dev/null +++ b/config.js @@ -0,0 +1,5 @@ +exports.styles = [{ + 'name' : 'testing', + 'file' : 'mapnik.xml', + //add some values for e.g. expire +} ]; diff --git a/main.js b/main.js index 37b3623..3f7e19d 100644 --- a/main.js +++ b/main.js @@ -1,3 +1,4 @@ +var config = require('./config'); //include config file var mapnik = require('mapnik'); var TC = require('./node-tokyocabinet/build/default/tokyocabinet');