Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Node.js with Express: Importing client-side javascript using script tags in Jade views

app.dynamicHelpers({
  scripts: function(req, res){
    return ['jquery.js']; //this will be available in all views
  }
});
 
PREVIOUS NEXT
Tagged: #Importing #javascript #script #tags #Jade #views
ADD COMMENT
Topic
Name
8+7 =