Created
December 3, 2016 16:53
-
-
Save eleda/7a7c633ad36c7226daf5115a7bcbf8b1 to your computer and use it in GitHub Desktop.
Jade alap és tömb!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends layout | |
block content | |
h1 Hello Kedves Felhasználó! | |
p Felsorolom, hogy kik az osztálytársaim: | |
ul | |
each nev in nevek | |
li= nev | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var router = express.Router(); | |
/* GET home page. */ | |
router.get('/', function(req, res, next) { | |
res.render('index', { title: 'Express', nevek: ['Jozsi', 'Mari', 'Peti', 'Andi'] }); | |
}); | |
/* saját kis route */ | |
router.get('/about', function(req, res, next) { | |
res.send('(c) Elekes Dávid 2016.'); | |
}); | |
module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment