On Tue, Sep 09, 2008 at 08:59:49PM +1000, Jacinta Richardson wrote:
> Gabor Szabo wrote:
>
> > I was looking for the web sites of previous YAPCs and I could not
> > find them on http://www.yapc.org/index.html
> > Could you please tell me where can I find them?
> > If they are not on that web site, would it be possible to add them?
>
> Excellent translation. ;)
>
> With respect to storing this information, if one was to translate Philippe's
> excellent YAML file into a nice XHTML page with links (where they exist - not
> all will), how would you recommend it be ordered? By date? Country?
> Continent? I'm fairly sure it would be less than a day's work (certainly no
> more than 2) to write a script which used that YAML file to generate
> appropriate
> pages. Perhaps if someone is eager they can do so, and offer it to Jim Brandt
> as something that could be included on the YAPC.org page. It might not have
> any
> success, but at worst it's just a little fun. ;)
>
Using Template Toolkit, since the date format is actually TT's format:
[%
USE date;
USE YAML;
confs = YAML.undumpfile("conferences.yml");
FOR item = confs ;
# filter on unknown and future dates
NEXT IF item.begin.match( 'xx' );
NEXT IF date.format( item.begin, '%Y%m%d' ) > date.format(date.now,
'%Y%m%d');
# filter on conference type
NEXT IF item.genre != 'yapc';
%]
<!-- Insert HTML using item object properties -->
[% END %]
The code to produce the main page of http://www.yapceurope.org/ and
others has not so good-looking code to handle one-day conferences.
I can forward it if needed.
--
Philippe Bruhat (BooK)
The right answer is worthless with the wrong question!
(Moral from Groo The Wanderer #88 (Epic))