Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = {
- handle_index : function(req, res) {
- res.render('index', {
- title: 'Home',
- locals: {name: 'User Name'}
- });
- }
- };
- !!!5
- head
- title= title
- body
- div
- p The User Name:
- p #{locals.name}
- p Is Valid
- <!DOCTYPE html>
- <head><title>Home</title></head>
- <body>
- <div>
- <p>The User Name:</p>
- <p></p>
- <p>Is Valid</p>
- </div>
- </body>
- handle_index : function(req, res) {
- var local = {name : "User Name"};
- res.render('index', {
- title: 'Home',
- locals : local
- });
- }
- };
- !!!5
- head
- title= title
- body
- div
- p The User Name:
- p #{locals.name}
- p Is Valid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement