Created
December 24, 2018 10:11
-
-
Save evanxg852000/762f167fe74f00e9c5e89c44fa96f426 to your computer and use it in GitHub Desktop.
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 = function (context) { | |
//extract context as local variables | |
for(let varname of Object.keys(context)){ | |
this[varname]= context[varname] | |
} | |
let __njsOutput = '' | |
__njsOutput += '<p>The page content ... </p>' | |
return __njsOutput | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment