Hi


I am a newbie in kid template. I have one layout.kid file. It contains some menu
items that should be visible in my all pages. (Its just like a menu)

I have another page named as page.kid. It contains some text to
display. I wrote <body bgcolor="#ffffff"> in page.kid.

How can i push the bgcolor attribute in my template. I get only the
body tag attributes of layout.kid

I need also add my bgcolor attribute in body tag. How can i do this?

How can i write the template which contain my attributes whatever i
specified in body tag.

While i run the page in browser, my background color is not set in
page.kid.

I saw the view source. It replaced the layout.kid body tag. I need the
body tag attributes whatever specify in page.kid file.

Please anyone help me..

The sample code and sample output in the following

==== layout.kid ====

<html xmlns:py=" http://purl.org/kid/ns#">
...
<body py:match="item.tag == 'body'">

   <div>
   ... Common content to all pages ...
   </div>

   <div py:replace="[item.text] + item[:]">
   ... page specific content goes here ...
   </div>

</body>
</html>



==== page.kid ===
<html py:extends="'layout.kid'" xmlns:py="http://purl.org/kid/ns#">
<body bgcolor="#ffffff">
   <div>
   !! page specific content !!
   </div>
</body>
</html>


==== output ====
...
<body >   <div>
   ... Common content to all pages ...
   </div>

   <div>
   !! page specific content !!
   </div>
</body>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to