This file contains hidden or 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
| //my-layout.jade | |
| doctype 5 | |
| html | |
| head | |
| title Template Page | |
| block head | |
| body | |
| #content | |
| block content |
This file contains hidden or 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
| //my-template.jade | |
| extends my-layout | |
| block head | |
| script(src="myfile.js") | |
| block content | |
| h1 My page |
This file contains hidden or 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 append head | |
| script(src='/vendor/three.js') | |
| script(src='/game.js') | |
| extends layout | |
| block prepend head | |
| script(src='/vendor/three.js') |
This file contains hidden or 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
| div#makalesLitesi | |
| ul | |
| for(makale in makaleListesi) | |
| { | |
| li makale.adi | |
| } |
This file contains hidden or 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
| //search.jade | |
| extends my-layout | |
| block content | |
| h2 Arama Sonuçları | |
| include makaleListesi.jade | |
| //search.jade | |
| extends my-layout |
This file contains hidden or 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
| div.liste | |
| ul Fruit List | |
| each item in items | |
| li= item.adi |
This file contains hidden or 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/default | |
| block main | |
| div#mainContent(style="border:1") | |
| span | |
| Meyve Adı: | |
| input(id="txtFruit", name="fruit") | |
| button(id="btnEkle",type="button") Ekle |
This file contains hidden or 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
| exports.addFruit = function (req, res) { | |
| var fruits = req.session.fruits; | |
| fruits.push({adi:req.body.fruit}); | |
| req.session.fruits = fruits; | |
| res.render('partialListe', {layout: false,items:fruits }); | |
| } |
This file contains hidden or 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/default | |
| block main | |
| div#mainContent(style="border:1") | |
| span | |
| Meyve Adı: | |
| input(id="txtFruit", name="fruit") | |
| button(id="btnEkle",type="button") Ekle |
This file contains hidden or 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
| app.use(function(req, res) { | |
| res.end('Hello!'); | |
| }); |
OlderNewer