[Twisted-web] Accessing CSS Style sheets and the like

Michael Wilson michael.wilson at gmail.com
Mon Dec 6 11:53:55 MST 2004


I'm a nevow newbie, and I have a quick question.

Imagine I have a .xhtml like this:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml"
   <title>Main page</title>
       <style type="text/css" media="screen">@import
       <div id="banner">

The import for "styles-site-nl.css" goes to Twisted/Nevow, who then
looks for a styles-site-nl.css object, which exists on disk, but of
course there's no method for it anywhere.

Of course I can make this a straight http://... reference, but that
seems a little clunky.

Is there a way to tell Newvow/Twisted "All references beginning with
(say) "blatz/" should just be fetched as files?


Michael Wilson


More information about the Twisted-web mailing list