[Twisted-web] Accessing CSS Style sheets and the like
Michael Wilson
michael.wilson at gmail.com
Mon Dec 6 11:53:55 MST 2004
Hi
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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:nevow="http://nevow.com/ns/nevow/0.1">
<head>
<title>Main page</title>
<style type="text/css" media="screen">@import
"styles-site-nl.css";</style>
</head>
<body>
<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?
Thanks!
Michael Wilson
http://www.tzec-maun.com
More information about the Twisted-web
mailing list