|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
chaos
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Administrator
Join Date: Dec 2004
Posts: 8,765
|
Volunteers needed! Code is in /branches/genshi.
www.makotemplates.org http://genshi.edgewall.org/ Here's a template for regular pages in a section: Code:
<html xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="True">
<py:match path="title" once="True">
<title>Big Misty</title>
</py:match>
<py:match path="breadcrumbs" once="True">
<breadcrumbs><a>This Page</a></breadcrumb>
</py:match>
<py:match path="content" once="True">
<content>
<p>The girth of the Misty is de big Misty</p>
...
</content>
</py:match>
<xi:include href="base.html" />
</html>
---------- "Base" files in a section (like scms/base.html) need some special attention. They extend the main base template (in /base.html, which extends /raw.html). Here is an example: Code:
<html xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="True">
<py:match path="title" once="True">
<title>${select("text()"}} - SCMS</title>
</py:match>
<py:match path="head" once="True">
<head>
... any css you need here ...
${select("*")}
</head>
</py:match>
<py:match path="breadcrumbs" once="True">
<breadcrumbs><a href="/scms/">SCMS</a> ${select("*")}</breadcrumbs>
</py:match>
<py:match path="content" once="True">
<nav>
<navbody section="SCMS">
<a href="/scms/link1">Link1</a>
<a href="/scms/link2">Link2</a>
<a href="/scms/link3">Link3</a>
</navbody>
<content />
</nav>
</py:match>
<xi:include href="base.html" />
</html>
(Note2: Not every base adds "- Section" to the output. If it doesn't currently, don't add the code)
__________________
!gabite fierce: y'd u mute me?? !gabite fierce: eh bro?? !gabite fierce: u scared that i might bash u cuz u r not replying? ~chaos: you can't honestly think that is the reason lol !gabite fierce: tell me the reason oh is it cuz of bolding the writing? !gabite fierce: eh? !gabite fierce: u scared again? Last edited by chaos; Jan 30th, 2009 at 1:15:46 PM. |
|
|
|
|
|
#2 |
|
chaos
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Administrator
Join Date: Dec 2004
Posts: 8,765
|
If there are any questions, please post them here
__________________
!gabite fierce: y'd u mute me?? !gabite fierce: eh bro?? !gabite fierce: u scared that i might bash u cuz u r not replying? ~chaos: you can't honestly think that is the reason lol !gabite fierce: tell me the reason oh is it cuz of bolding the writing? !gabite fierce: eh? !gabite fierce: u scared again? |
|
|
|
|
|
#3 |
|
chaos
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Administrator
Join Date: Dec 2004
Posts: 8,765
|
It'd be nice to get some volunteers. Shiv and ryu told me they'd be up for it but neither have posted in this thread.
__________________
!gabite fierce: y'd u mute me?? !gabite fierce: eh bro?? !gabite fierce: u scared that i might bash u cuz u r not replying? ~chaos: you can't honestly think that is the reason lol !gabite fierce: tell me the reason oh is it cuz of bolding the writing? !gabite fierce: eh? !gabite fierce: u scared again? |
|
|
|
|
|
#4 |
|
pfbwowbfobwobwobfwowbf
![]() ![]() ![]() ![]() ![]()
Administrator
Join Date: Feb 2005
Posts: 13,847
Most of them are good
|
ryu is leaving for another month or so due to exams
|
|
|
|
|
|
#5 |
![]() Join Date: Jan 2007
Posts: 999
|
sorry :< i did try looking up on IRC you were afk apparenrtly. i will see if i can do something atm
__________________
Code:
* !!!!!!!IF YOU CHANGE TABS TO SPACES, YOU WILL BE KILLED!!!!!!! * !!!!!!!!!!!!!!DOING SO FUCKS THE BUILD PROCESS!!!!!!!!!!!!!!!! |
|
|
|
|
|
#6 |
|
mostly harmless
![]() ![]() ![]()
Join Date: Apr 2005
Posts: 5,820
|
I hadn't noticed this thread (or forum for that matter). I'm up for doing this :)
|
|
|
|
|
|
#7 |
|
Join Date: Jun 2008
Posts: 1,101
Atlanta
|
If you don't mind me asking, is this just simply taking the old coding and turning it into Genshi new coding?
|
|
|
|
|
|
#8 |
|
Join Date: Oct 2008
Posts: 1,359
Ubers Master
|
I can assist in this project if you still need it done.
__________________
It's a love story, baby just say yes. |
|
|
|
![]() |
| Thread Tools | |
|
|