Using the Jade template engine, I want the ability to optionally declare classes to body tags, in templates that extends another.
layout.jade
!!! 5
html(lang='en')
head
block title
meta(charset='utf-8')
link(rel='stylesheet', href='/stylesheets/style.css')
block addhead
block body
div#wrap
header
div#header_content
p
a(href='/')
img(src='/images/logo.png', alt='Template-e-o')
div.hr.red
br(style='clear:both;')
div#content
block content
br(style='clear:both;')
index.jade
extends layout
block title
title bidi
block body
body.index
block content
p ’ello govna.
This is not working.