[Twisted-web] using css with nevow
Vincent Bernat
bernat at luffy.cx
Wed Oct 28 14:31:48 EDT 2009
OoO En ce doux début de matinée du mercredi 28 octobre 2009, vers 08:45,
Eric Medina <eric.medina.atienza at gmail.com> disait :
> body {
> background: #EEE url(img/bg.gif);
> color: #444;
> font: normal 62.5% "Lucida Sans Unicode",sans-serif;
> margin: 0;
> }
[...]
> class TestPage(rend.Page):
> addSlash = True
> child_images = static.File('img')
> children = {'default.css': static.File('default.css')}
> docFactory = loaders.xmlfile('webtest.html')
In CSS, you should use url("images/bg.gif") because you define
child_images (and not child_img).
--
panic("esp_handle: current_SC == penguin within interrupt!");
2.2.16 /usr/src/linux/drivers/scsi/esp.c
More information about the Twisted-web
mailing list