Created
June 20, 2012 01:14
-
-
Save dawnerd/2957525 to your computer and use it in GitHub Desktop.
Node Modules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var title = require('./title_var'); | |
//in my case this is run on page load so app.js sets the title var. | |
console.log(title); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var test = require('./title_var'); | |
test.title = "kJSDBGKJSDBgkjdfg"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
title: 'test' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment