You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by Stas Bekman <st...@stason.org> on 2001/11/13 18:31:52 UTC
[challenge] new mod_perl site
This is the boilerplate for the new mod_perl site:
http://www.apache.org/~stas/site/boilerplate/
It actually includes a lot of content, which I've ported from the old
site and added some new stuff. Even the new mod_perl 2.0 docs. But it's
incomplete.
Please do not post your likes or dislikes of this boilerplate,
but keep on reading.
Nathan Torkington was sick of waiting for Messiah to come and redo our
site, so he started re-doing it by himself. Since I've planned to merge
the documentation project with the site, I've picked it up from Nat
and started the DocSet project to make the site autogenerated.
The DocSet project is based on the idea used
by Template::Toolkit's documentation builder and of course re-using
the Splash HTML Widgets library Andy Wardley has developed. This is
Pod::HtmlPsPdf's big brother (Pod::HtmlPsPdf is currently used to
build the mod_perl guide). Currently it supports HTML and POD as sources
and HTML/PS/PDF as an output. More formats will be supported in the
future. If you want to get involved see:
http://www.template-toolkit.org/mailman/listinfo/template-docset
I've revamped the existing site and with help of DocSet provided a
consistent look-n-feel and auto-generated navigation. I *did* *not* do
a design of the site, and that's where comes the challenge...
The Challenge:
-------------
If you are a good *web* designer and willing to design our site in
return for the eternal fame and major ego boost, or just because you
feel like contributing back... we want your design.
Obviously the site should be very light on graphics, but since you are
a good web designer you know this and all the other requirements
already. The only requirement we have is that this is an information
site, so avoid fancy graphics and god forbid flash splashes :)
It's possible that the current boilerplate at the URL I've posted above
is exactly what we need, with possibly a few tweaks. So don't get over
your head, change things only if it's really necessary.
If nobody sends their designs the posted URL is what you get to use for
"eternity" :)
If you are interested, read the rules and explanations.
Rules:
------
The deadline is Monday Nov, 26 2001 (whatever time-zone you are in, I'll
check on the next day).
All the designs are to be submitted to me.
Please send me only the modified source as an attachment and name the
package (and the dir it resides in) as modperl-site-fname-lname.tar.gz
If you submit more than one version, append the version to the package
name. e.g. modperl-site-fname-lname-A.tar.gz
Use:
Subject: [modperl-site design challenge] fname lname [version]
as a subject for your submissions.
I'll make the submitted designs available online on Nov, 27.
I'm not sure yet how we are going to vote. Is anybody willing to setup
a clean voting script (which prevents cheating). I was thinking about
take23.org to host the votes... Matt?
The submission may include only changes to the existing templates
(it's ok to add new templates, the point is to work only with
templates).
Generating HTML:
----------------
Before doing any changes, see that you can build the current version.
1. Install Template::Toolkit (use CPAN)
2. Install DocSet. You can get it from here:
http://www.apache.org/~stas/site/DocSet-0.03.tar.gz
Notice that it's not released on CPAN yet, as it may change the
name. This module is discussed here:
http://www.template-toolkit.org/mailman/listinfo/template-docset
So if something doesn't work, post to this list.
You can read the docset archives here:
http://www.template-toolkit.org/pipermail/template-docset/
3. Download the new mod_perl site source
http://www.apache.org/~stas/site/modperl-site-new.src.tar.gz
4. Test that you can build the site. Assuming that you've untarred the
package into its original dir:
% cd modperl-site-new
% bin/build -vf
in the dst_html dir you will find the generated site. See the README
file and DocSet pods for more info, but you don't really need to read
these or understand how the builder works to get the design done.
Modifying Templates:
-------------------
You shouldn't mess with src/ dir,
The tmpl/std/ dir includes the standard Splash library of templates,
so generally you shouldn't touch this one. But if you see that it
generates improper HTML do change it and we will submit the fixes to
Andy. To learn how splash templates are called see:
http://www.template-toolkit.org/splash/index.html
Do play with the templates in the tmpl/custom/ dir.
All you have to change is two templates:
tmpl/custom/html/index - tmpl used for generating index.html pages
tmpl/custom/html/page - tmpl used for generating the rest of the pages
and of course you may change the templates these two templates
include.
If you need help with Template::Toolkit, see:
http://www.template-toolkit.org/. At this site you will find a lot of
good docs and the pointers the mailing list and its archives.
Communications:
---------------
Please try to use the resources the pointers to which I've provided
above. Please avoid asking me questions, unless you really have
to. This way I can continue working on the new content and improve the
DocSet module's code, which is far from perfect.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: [challenge] new mod_perl site
Posted by Stas Bekman <st...@stason.org>.
> 3. Download the new mod_perl site source
> http://www.apache.org/~stas/site/modperl-site-new.src.tar.gz
I've forgotten to include bin/build (which is the same as
DocSet/example/bin/build). So I've updated it now.
Thanks to Thomas Klausner for the alert.
---------------------------------------------
Also I forgot to mention that if you want to change the color of the
widgets, you just need to change
[% PROCESS splash/config;
splash.images = "$doc.dir.abs_doc_root/images/splash";
splash.fg = 'mauve';
splash.bg = 'lilac';
-%]
in tmpl/custom/html/page and tmpl/custom/html/index (need to specify
this in one place obviously)
See the Splash documentation for more info.
Thanks!
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: [challenge] new mod_perl site
Posted by Stas Bekman <st...@stason.org>.
Robin Berjon wrote:
> On Wednesday 14 November 2001 17:48, Antoine Quint wrote:
>
>>> If you[1] don't like the way the site is now,
>>> don't bitch about it but change it completing the challenge.
>>>
>>Well, I'd be up to having a crack at it... Would you be ok publishing
>>the site with AxKit? Coding websites with it is so easy!
>>
>>Robin, are you with me on that one?
>
> Hehe. I don't think you've made many friends here today ;-)
See, Robin is afraid of the angry crowd ;-) You have to hide now ;-)
> Stas has chosen another solution, based on TT2. In a private discussion with
> him, he said that it should be trivial to get that system to export XML,
> which we could then import into another site (perhaps take23.org ?) so that
> we could have an AxKit based mirror of the site, with all the cool stuff us
> XML froods love.
Currently the rendering engine is not tied very tightly to the code, so
once you come up with whatever other rendering engine you prefer we will
generalize things and support it directly, and any other rendering
engines that may be added in the future.
I needed to get things done so I moved on with TT2 for the site
generation, since I know it and it's a great toolkit. By all means do
check the project out, see how you can put your expertise in and have
everybody happy.
My point is still that design has nothing to do with whether you do it
with template toolkit, xml or what not. If it really prevents you from
submitting your design, just send it in whatever way you prefer. It'll
make be hard to integrate it then, but I hope that will be do-able.
But let's move this discussion to the docset mailing list.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: [challenge] new mod_perl site
Posted by Robin Berjon <ro...@knowscape.com>.
On Wednesday 14 November 2001 17:48, Antoine Quint wrote:
> > If you[1] don't like the way the site is now,
> > don't bitch about it but change it completing the challenge.
>
> Well, I'd be up to having a crack at it... Would you be ok publishing
> the site with AxKit? Coding websites with it is so easy!
>
> Robin, are you with me on that one?
Hehe. I don't think you've made many friends here today ;-)
Stas has chosen another solution, based on TT2. In a private discussion with
him, he said that it should be trivial to get that system to export XML,
which we could then import into another site (perhaps take23.org ?) so that
we could have an AxKit based mirror of the site, with all the cool stuff us
XML froods love.
If you want to submit a design, by all means forge ahead. I for one know how
cool your designs can be. Plus, I know it'll be clean code. But don't expect
to have a chance to use XSLT there, you'll have to learn TT2 syntax, or find
someone that will do the translation for you (I would, but I haven't used TT
in way too long to remember).
If that discourages you, then wait a little bit until we get the XML export,
I'll definitely be with you on that one ;-)
--
_______________________________________________________________________
Robin Berjon <ro...@knowscape.com> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
-----------------------------------------------------------------------
Immature poets imitate, mature poets steal. -- T.S. Eliot
RE: [challenge] new mod_perl site
Posted by Antoine Quint <an...@graougraou.com>.
> If you[1] don't like the way the site is now,
> don't bitch about it but change it completing the challenge.
Well, I'd be up to having a crack at it... Would you be ok publishing
the site with AxKit? Coding websites with it is so easy!
Robin, are you with me on that one?
Antoine
Re: [challenge] new mod_perl site
Posted by Stas Bekman <st...@stason.org>.
Robin Berjon wrote:
> On Wednesday 14 November 2001 16:55, Stas Bekman wrote:
>
>>Robin Berjon wrote:
>>
>>>On Wednesday 14 November 2001 03:27, Perrin Harkins wrote:
>>>
>>>>Maybe we should give the horse a chance to catch up to the cart...
>>>>
>>>>Once there is a design that people are satisfied with, you are more than
>>>>welcome to submit patches to fix validation problems.
>>>>
>>>Agreed, but it's far easier to start cleanly. Fixing "designer-code" can
>>>be insanely hard and time consuming. "Be strict in what you..." and all
>>>that.
>>>
>>May be I was not clear. You can change whatever you want in the
>>templates. There is no design at this moment! Scratch what you see and
>>make a new one.
>>
>
> Stas, maybe it's me that wasn't clear :-) When I said "designer-code", I
> didn't mean _your_ code, I meant something that someone would submit that
> wouldn't be clean (X)HTML.
>
>
>>In any case if you look at the templates, they are bare bones. So it
>>shouldn't be time consuming and of course it's not insanely hard. I
>>think you didn't look at the source before saying what you've said.
>>
>
> I didn't say that ! I was answering (what I understood from) Perrin's email
> that said that maybe people should submit their design in whatever form they
> want (ie with whatever degree of code cleanliness) and once we have a good
> design we can clean that up. I'm not against that approach, but I think it's
> easier to have clean code to start with (again, in the submissions made to
> the contest, I wasn't referring to your code _at_all_).
>
> You want the templates to be editable in a text editor, and I think that's a
> very good requirement. Clean code to start with will make that a lot easier.
> Also, this is not the web of '95 anymore. Gradually, HTML is having a chance
> of becoming less of a dirty word. I'm suggesting we do our small part in
> helping progress.
Oh, OK, so we think the same way. I think what Perrin was trying to say
is that we should stop talking and get things moving. Once we decide on
the best design, others can send patches to make sure that the design is
valid, etc.
All three of us are saying the same:
If you[1] don't like the way the site is now,
don't bitch about it but change it completing the challenge.
I think I've prepared a good infrastructure for accomplishing this goal.
it's not perfect but it's a good start. Now just throw in your talent
and create this very cool-slick-eye-candy site, as long as you adher to
the rules I've listed in the original challenge.
[1] you == all those who care, have a little time on their hands, and
know-how.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: [challenge] new mod_perl site
Posted by Robin Berjon <ro...@knowscape.com>.
On Wednesday 14 November 2001 16:55, Stas Bekman wrote:
> Robin Berjon wrote:
> > On Wednesday 14 November 2001 03:27, Perrin Harkins wrote:
> >>Maybe we should give the horse a chance to catch up to the cart...
> >>
> >>Once there is a design that people are satisfied with, you are more than
> >>welcome to submit patches to fix validation problems.
> >
> > Agreed, but it's far easier to start cleanly. Fixing "designer-code" can
> > be insanely hard and time consuming. "Be strict in what you..." and all
> > that.
>
> May be I was not clear. You can change whatever you want in the
> templates. There is no design at this moment! Scratch what you see and
> make a new one.
Stas, maybe it's me that wasn't clear :-) When I said "designer-code", I
didn't mean _your_ code, I meant something that someone would submit that
wouldn't be clean (X)HTML.
> In any case if you look at the templates, they are bare bones. So it
> shouldn't be time consuming and of course it's not insanely hard. I
> think you didn't look at the source before saying what you've said.
I didn't say that ! I was answering (what I understood from) Perrin's email
that said that maybe people should submit their design in whatever form they
want (ie with whatever degree of code cleanliness) and once we have a good
design we can clean that up. I'm not against that approach, but I think it's
easier to have clean code to start with (again, in the submissions made to
the contest, I wasn't referring to your code _at_all_).
You want the templates to be editable in a text editor, and I think that's a
very good requirement. Clean code to start with will make that a lot easier.
Also, this is not the web of '95 anymore. Gradually, HTML is having a chance
of becoming less of a dirty word. I'm suggesting we do our small part in
helping progress.
--
_______________________________________________________________________
Robin Berjon <ro...@knowscape.com> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
-----------------------------------------------------------------------
Radioactive cats have 18 half-lives.
Re: [challenge] new mod_perl site
Posted by Stas Bekman <st...@stason.org>.
Robin Berjon wrote:
> On Wednesday 14 November 2001 03:27, Perrin Harkins wrote:
>
>>>What about an additional requirement:
>>>
>>>The site should be validated sucessfully by validator.w3.org
>>>
>>Maybe we should give the horse a chance to catch up to the cart...
>>
>>Once there is a design that people are satisfied with, you are more than
>>welcome to submit patches to fix validation problems.
>>
>
> Agreed, but it's far easier to start cleanly. Fixing "designer-code" can be
> insanely hard and time consuming. "Be strict in what you..." and all that.
Robin,
May be I was not clear. You can change whatever you want in the
templates. There is no design at this moment! Scratch what you see and
make a new one.
The only requirement was to keep the navigation (which is very minimal)
as is, while you can decorate the navigation any way you want (these are
just hyperlinks!). The use of Splash library for widgets was just to
make it easier to construct and maintain the site. If you don't feel
like using it, fine but please make the templates maintainable in the
text editor.
In any case if you look at the templates, they are bare bones. So it
shouldn't be time consuming and of course it's not insanely hard. I
think you didn't look at the source before saying what you've said.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: [challenge] new mod_perl site
Posted by Robin Berjon <ro...@knowscape.com>.
On Wednesday 14 November 2001 03:27, Perrin Harkins wrote:
> > What about an additional requirement:
> >
> > The site should be validated sucessfully by validator.w3.org
>
> Maybe we should give the horse a chance to catch up to the cart...
>
> Once there is a design that people are satisfied with, you are more than
> welcome to submit patches to fix validation problems.
Agreed, but it's far easier to start cleanly. Fixing "designer-code" can be
insanely hard and time consuming. "Be strict in what you..." and all that.
--
_______________________________________________________________________
Robin Berjon <ro...@knowscape.com> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
-----------------------------------------------------------------------
I think... I think it's in my basement... Let me go upstairs and
check.
-- Escher
Re: [challenge] new mod_perl site
Posted by Perrin Harkins <pe...@elem.com>.
> What about an additional requirement:
>
> The site should be validated sucessfully by validator.w3.org
Maybe we should give the horse a chance to catch up to the cart...
Once there is a design that people are satisfied with, you are more than
welcome to submit patches to fix validation problems.
- Perrin
Re: [challenge] new mod_perl site
Posted by tom poe <to...@renonevada.net>.
On Tuesday 13 November 2001 11:57, Thomas Klausner wrote:
> Hi!
>
> On Wed, Nov 14, 2001 at 01:31:52AM +0800, Stas Bekman wrote:
> > Obviously the site should be very light on graphics, but since you are
> > a good web designer you know this and all the other requirements
> > already. The only requirement we have is that this is an information
> > site, so avoid fancy graphics and god forbid flash splashes :)
>
- - - snip - - -
> Anyway, I think I will give it a try ...
Hi: Well, take your time. As soon as I find out from the SuSE list what the
path is to Apache on 7.1 to use, I'm goona try out the
http://perl.apache.org/embperl/IntroEmbperlObject.pod.2.html
Say, there's no deadline on this thing, is there?
<grin>
Tom
Re: [challenge] new mod_perl site
Posted by tom poe <to...@renonevada.net>.
On Tuesday 13 November 2001 11:57, Thomas Klausner wrote:
> Hi!
>
> On Wed, Nov 14, 2001 at 01:31:52AM +0800, Stas Bekman wrote:
> > Obviously the site should be very light on graphics, but since you are
> > a good web designer you know this and all the other requirements
> > already. The only requirement we have is that this is an information
> > site, so avoid fancy graphics and god forbid flash splashes :)
>
- - - snip - - -
> Anyway, I think I will give it a try ...
Hi: Well, take your time. As soon as I find out from the SuSE list what the
path is to Apache on 7.1 to use, I'm goona try out the
http://perl.apache.org/embperl/IntroEmbperlObject.pod.2.html
Say, there's no deadline on this thing, is there?
<grin>
Tom
Re: [challenge] new mod_perl site
Posted by Perrin Harkins <pe...@elem.com>.
> What about an additional requirement:
>
> The site should be validated sucessfully by validator.w3.org
Maybe we should give the horse a chance to catch up to the cart...
Once there is a design that people are satisfied with, you are more than
welcome to submit patches to fix validation problems.
- Perrin
Re: [challenge] new mod_perl site
Posted by Thomas Klausner <do...@zsi.at>.
Hi!
On Wed, Nov 14, 2001 at 01:31:52AM +0800, Stas Bekman wrote:
> Obviously the site should be very light on graphics, but since you are
> a good web designer you know this and all the other requirements
> already. The only requirement we have is that this is an information
> site, so avoid fancy graphics and god forbid flash splashes :)
What about an additional requirement:
The site should be validated sucessfully by validator.w3.org
(The current design doesn't, BTW)
I know that it is hard to get a page validated there, but IMO there should
be more "clean"/standard-compatible websites. I guess you all know the
reasons for this, so I won't repeat them here.
Anyway, I think I will give it a try ...
--
D_OMM
O_xyderkes
M_echanen http://domm.zsi.at
M_asteuei
Re: [challenge] new mod_perl site
Posted by Stas Bekman <st...@stason.org>.
As David Young has pointed out you can change the style.css in addition
to the template changes.
the one I've gave to you includes some old classes, which I'll remove,
so disregard those.
Thanks
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: [challenge] new mod_perl site
Posted by Thomas Klausner <do...@zsi.at>.
Hi!
On Wed, Nov 14, 2001 at 01:31:52AM +0800, Stas Bekman wrote:
> Obviously the site should be very light on graphics, but since you are
> a good web designer you know this and all the other requirements
> already. The only requirement we have is that this is an information
> site, so avoid fancy graphics and god forbid flash splashes :)
What about an additional requirement:
The site should be validated sucessfully by validator.w3.org
(The current design doesn't, BTW)
I know that it is hard to get a page validated there, but IMO there should
be more "clean"/standard-compatible websites. I guess you all know the
reasons for this, so I won't repeat them here.
Anyway, I think I will give it a try ...
--
D_OMM
O_xyderkes
M_echanen http://domm.zsi.at
M_asteuei
Re: [challenge] new mod_perl site
Posted by Stas Bekman <st...@stason.org>.
As David Young has pointed out you can change the style.css in addition
to the template changes.
the one I've gave to you includes some old classes, which I'll remove,
so disregard those.
Thanks
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Re: [challenge] new mod_perl site
Posted by Stas Bekman <st...@stason.org>.
> 3. Download the new mod_perl site source
> http://www.apache.org/~stas/site/modperl-site-new.src.tar.gz
I've forgotten to include bin/build (which is the same as
DocSet/example/bin/build). So I've updated it now.
Thanks to Thomas Klausner for the alert.
---------------------------------------------
Also I forgot to mention that if you want to change the color of the
widgets, you just need to change
[% PROCESS splash/config;
splash.images = "$doc.dir.abs_doc_root/images/splash";
splash.fg = 'mauve';
splash.bg = 'lilac';
-%]
in tmpl/custom/html/page and tmpl/custom/html/index (need to specify
this in one place obviously)
See the Splash documentation for more info.
Thanks!
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/