visionmedia/jade — Issue #429: Is there a way to extend a class attribute in down-stream partials?
Author: jasonkuhrt
Created: 2011-12-09 14:12:24+00:00
State: open

Given something like the following:

section.panel(class=panel.type, title=panel.label)
block head
header
h1.title!= panel.label
.content
block content
!= panel.content

How could I extend the attributes of `section.panel` in downstream partials? i.e. like this one:

// I need a way to add "headless" and "raw" to the ../panel section.panel class attribute!
extends ../panel

block head
header
h1.title Moving image
block content
iframe(src="http://player.vimeo.com/video/19659537?title=&byline=&portrait=0&api=1&color=FFFFFF",
width="280", height="210"
frameborder="0")