yupu wrote:
>... when i tried master.kid comes when I created a new project, it
> seems my browser can't find the style sheet.
> 
> Here is the line inside master.kid that point to the style sheet:
> @import "${tg.url('/static/css/style.css')}";

This can of course only work if the template is run via TurboGears.

To use the stylesheet with the bare master template as well, you can put 
something like this in the master template:

<link rel="stylesheet" type="text/css" media="screen" 
href="../static/css/style.css"
py:attrs="href=tg.url('/static/css/style.css')">

I have changed this in the SVN so you will get this by default in 1.0.4.

As a general recommendation, if you want to have working templates 
resembling the end result, then avoid using $ substitution, and use 
py:content and py:attrs instead.

> Another thing is when i review the welcome.kid, it seems again the
> browser couldn't find information from the master.kid.

Yes, but you have to live with that restriction. If you want to see the 
complete result you have to go through TurboGears. The browser cannot 
interpret Kid's extend statement.

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to