13. include de templates
//
header.jade
head
title
Mi
Sitio
script(src=js/jquery.js)
//
footer.jade
footer
p
Copyright
2013
//
index.jade
doctype
html
include
head
body
h1
Bienvenidos
p
Parrafo
include
footer
jade
jade
html
jade
14. extend y soporte de bloques
//
layout.jade
doctype
html
head
title
Mi
Sitio
block
script
body
block
content
footer
Copyright
2013
//
about.jade
extends
layout
!
block
content
h1
Sobre
mi
p
Mi
nombre
es
Max
p
Vivo
en
Buenos
Aires
//
index.jade
extends
layout
!
block
script
script(src=js/jquery.js)
!
block
content
h1
Bienvenidos
p
Párrafo
jade
jade
jade
//
contact.jade
extends
layout
!
block
content
h1
Contacto
form
input#nombre(type=“text”)
jade
46. “If your CSS is complicated enough to need a
compiler or pre-processor, you’re fucking
doing it wrong!” Andrew Clarke, 2009
47. “If your CSS is complicated enough to need a
compiler or pre-processor, you’re fucking
doing it wrong!
“I once wrote that there was no need to use a
CSS pre-processor like LESS or Sass. I was
wrong. Very sorry.” Andrew Clarke, 2011
48. “By becoming web developers you agreed on
staying up to date with all the new cool stuff.
!
THIS is the new cool stuff.
Jonathan Verrechia (creator of Initialzr)