title: How to use script. in JADE templates
body: <p>I have created a simple node app using the express framework using JADE templating.</p>
  
  <p>All was well in the learning process until I came to try and run some client-side js which I cannot figure out how to do.</p>
  
  <p>Is there something I need to do in my app/index.js to tell node about them? Any help would be much appreciated.</p>
  
  <p>Thanks</p>
  
  <p><strong>index.jade</strong></p>
  
  <pre><code> extends layout
  
   block content
  
   h1 Title
  
   script.
     console.log("I am running on the client");
  </code></pre>
  
  <p><strong>app.js</strong></p>
  
  <pre class="lang-js prettyprint-override"><code> var http = require("http")
   var express = require("express")
   var path = require('path');
   var routes = require('./routes/index');
  
   var app = express()
   var port = process.env.PORT || 5000
  
   // view engine setup
   app.set('views', path.join(__dirname, 'views'));
   app.set('view engine', 'jade');
  
   app.use(express.static(path.join(__dirname, 'public')));
   app.use('/', routes);
  
   var server = http.createServer(app)
   server.listen(port)
  
   console.log("http server listening on %d", port)
  
   module.exports = app;
  </code></pre>
  
  <p><strong>layout.jade</strong></p>
  
  <pre><code> doctype html
   html
     head
       title= title
       link(rel='stylesheet', href='/stylesheets/style.css')
       link(rel='stylesheet', href='/stylesheets/bootstrap.css')
       link(rel='stylesheet', href='/stylesheets/style.css')
       script(src='/javascripts/jquery-2.1.3.js') 
       script(src='/javascripts/bootstrap.js') 
  
     body
       div(class="navbar navbar-inverse navbar-fixed-top")
         .container
           .navbar-header
             button.navbar-toggle(type="button", data-toggle="collapse", data-target=".navbar-collapse")
               span.icon-bar
               span.icon-bar
               span.icon-bar
             a.navbar-brand(href="/") Twitter
           div(class="collapse navbar-collapse")
             ul(class="nav navbar-nav")
               li.active
                 a(href="#") Home
               li
                 a(href="#about") About
               li
                 a(href="#contact") Contact
       block content     
  </code></pre>