Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. module.exports = {
  2. handle_index : function(req, res) {
  3. res.render('index', {
  4. title: 'Home',
  5. locals: {name: 'User Name'}
  6. });
  7. }
  8. };
  9.  
  10. !!!5
  11. head
  12. title= title
  13. body
  14. div
  15. p The User Name:
  16. p #{locals.name}
  17. p Is Valid
  18.  
  19. <!DOCTYPE html>
  20. <head><title>Home</title></head>
  21. <body>
  22. <div>
  23. <p>The User Name:</p>
  24. <p></p>
  25. <p>Is Valid</p>
  26. </div>
  27. </body>
  28.  
  29. handle_index : function(req, res) {
  30. var local = {name : "User Name"};
  31. res.render('index', {
  32. title: 'Home',
  33. locals : local
  34. });
  35. }
  36. };
  37.  
  38. !!!5
  39. head
  40. title= title
  41. body
  42. div
  43. p The User Name:
  44. p #{locals.name}
  45. p Is Valid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement