SHARE
TWEET

Untitled

a guest Jun 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.engine('.hbs', exphbs({
  2.     extname: '.hbs',
  3.     defaultLayout: 'main',
  4.     partialsDir: path.join(__dirname, 'views/partial'),
  5.     layoutsDir: path.join(__dirname, 'views/layouts')
  6.  
  7.  
  8. }));
  9. app.set('view engine', '.hbs');
  10.      
  11. router.get('/', function(req, res, next) {
  12.   res.render('listings', {
  13.     title: 'listings',
  14.     page:'listing',
  15.     layout: 'dashboard',
  16. });
  17. });
  18.  
  19. module.exports = router;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top