Skip to content

Instantly share code, notes, and snippets.

@dawnerd
Created June 20, 2012 01:14
Show Gist options
  • Save dawnerd/2957525 to your computer and use it in GitHub Desktop.
Save dawnerd/2957525 to your computer and use it in GitHub Desktop.
Node Modules
var title = require('./title_var');
//in my case this is run on page load so app.js sets the title var.
console.log(title);
var test = require('./title_var');
test.title = "kJSDBGKJSDBgkjdfg";
module.exports = {
title: 'test'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment