Skip to content

Instantly share code, notes, and snippets.

@luisgagocasas
Last active August 29, 2015 14:25
Show Gist options
  • Save luisgagocasas/d4dc602988f7d292f2c9 to your computer and use it in GitHub Desktop.
Save luisgagocasas/d4dc602988f7d292f2c9 to your computer and use it in GitHub Desktop.
Para que funcione extends en jadephp Grunt
Para que funcione con extends tiene que usar esta configuración en su archivo Gruntfile.js
//base.jade
<!DOCTYPE html>
html(lang="es")
head
meta(charset="UTF-8")
block titulo
title Luis Gago Casas
body
p Hola Mundo
//index.jade
extends jade/base.jade
block titulo
title Bienvenido a Luis Gago Casas
//Gruntfile.js
jadephp: {
compile: {
options: {
client: false,
pretty: true,
basedir: 'jade', //archivo base
filename: 'base'
},
files: {
'www/index.html': 'jade/index.jade',
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment