Page 247 - Nodejs 교과서 개정2판
P. 247

ೠ ױ҅ ؊ ٜৈॳӝغয ੓যঠ ೤פ׮  ա઺ী ੊झ೐ۨझীࢲ res.render('body')ܳ ࢎਊ೧ ೞա੄ )5.-

         ۽ ೤୛ ۪؊݂ೡ ࣻ ੓णפ׮  ಌӒ ഛ੢੗ח ࢤۚ оמ೤פ׮  block ࠗ࠙੉ ࢲ۽ ೤୛૘פ׮

         ੉ઁ ಌӒ੄ ޙߨ਷ ୽࠙൤ ߓਛणפ׮  WJFXT ಫ؊ী MBZPVU QVH  JOEFY QVH  FSSPS QVH ౵ੌਸ ٜ݅যࠇद

         ׮

          layout.pug

           doctype	html
           html
           		head
           				title=	title
           				link(rel='stylesheet',	href='/style.css')
           		body
           				block	content



          index.pug

           extends	layout


           block	content
           		h1=	title
           		p	Welcome	to	#{title}




          error.pug
           extends	layout


           block	content
           		h1=	message
           		h2=	error.status
           		pre	#{error.stack}




         JOEFY QVHܳ ࠁݶ extends layoutҗ block contentо ੓णפ׮  MBZPVU QVH੄ block content ࠗ࠙ী JOEFY

          QVH੄ block contentܳ ֍णפ׮  JOEFY QVHח res.render۽ࠗఠ title੉ۄח ߸ࣻܳ ߉ই ۪؊݂೤פ׮

         FSSPS QVHب block content ࠗ࠙੉ MBZPVU QVH৬ োѾؾפ׮  res.render۽ࠗఠ message৬ error ߸ࣻܳ ߉

         ই ۪؊݂೤פ׮

         ಌӒ ޙߨী औѱ ੊ࣼ೧૑૑ ঋח׮ݶ ׮਺ ੺੄ ք੸झۄח మ೒݁ ূ૓ب ࢓ಝࠁࣁਃ


          
          
               ք੸झ
   242   243   244   245   246   247   248   249   250   251   252