Genius plan for the website!

2009-07-03 Thread Edmund von der Burg
So London.pm looks good on the outside due to Tony's efforts.

But is there any inner beauty?

Here is my cunning plan to regain the inner beauty:

  1) wget -r the current site to a bunch of static files
  2) tedious finding of repeated text replacing them with
Template::Toolkit [% INCLUDE ... %]
  3) tiny, simple, bulletproof script to take templates and generate html pages
  4) tiny, simple, bulletproof script to take html and upload it to server
  5) dump all templates and scripts into github (or whatever)
  6) err - that's it!

this would mean that:

  1) anyone could edit the site and fling back a patch.
  2) meetings might be up-to-date
  3) XML? what XML?
  4) one step closer to world domination!

Any volunteers or am I going to have to do it all myself?

Cheers,
  Edmund.


-- 
Help Perl newbies: http://www.send-a-newbie.com/
http://twitter.com/send_a_newbie


Re: Genius plan for the website!

2009-07-03 Thread James Laver

On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:


Here is my cunning plan to regain the inner beauty:

 1) wget -r the current site to a bunch of static files


We have a bunch of static files. The whole thing is generated from xml.


 2) tedious finding of repeated text replacing them with
Template::Toolkit [% INCLUDE ... %]


How about replacing them with !-- #include ... --  instead? I know  
we're a perl website, but lets be pragmatic and not go overkill.


 3) tiny, simple, bulletproof script to take templates and generate  
html pages


Unnecessary

 4) tiny, simple, bulletproof script to take html and upload it to  
server


Unnecessary


5) dump all templates and scripts into github (or whatever)


That bit's easy


 6) err - that's it!


If you still have a 'build' step, it's horribly wrong.


Any volunteers or am I going to have to do it all myself?


/me steps back, has enough to do.

--James


Re: Genius plan for the website!

2009-07-03 Thread Dave Hodgkinson


On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:


 3) tiny, simple, bulletproof script to take templates and generate  
html pages



Apache::Template FTW! Then cache on the front.

--
Dave HodgkinsonMSN: daveh...@hotmail.com
Site: http://www.davehodgkinson.com  UK: +44 7768 490620
Blog: http://davehodg.blogspot.com
Photos: http://www.flickr.com/photos/davehodg









Re: Genius plan for the website!

2009-07-03 Thread Leo Lapworth
2009/7/3 Dave Hodgkinson daveh...@gmail.com


 On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:


  3) tiny, simple, bulletproof script to take templates and generate html
 pages


 Apache::Template FTW! Then cache on the front.


/me passed Edmund the can of worms and points to the JFDI mistake

Leo


Re: Genius plan for the website!

2009-07-03 Thread Edmund von der Burg
2009/7/3 James Laver james.la...@gmail.com:
 On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:

 Here is my cunning plan to regain the inner beauty:

  1) wget -r the current site to a bunch of static files

 We have a bunch of static files. The whole thing is generated from xml.

  2) tedious finding of repeated text replacing them with
 Template::Toolkit [% INCLUDE ... %]

 How about replacing them with !-- #include ... --  instead? I know we're a 
 perl website, but lets be pragmatic and not go overkill.

Nope - need to be able to view the final HTML without running a
server. Otherwise there is just yet another barrier to making changes
that stop people from doing things. A little build script is the
simplest possible compromise

  3) tiny, simple, bulletproof script to take templates and generate html 
 pages

 Unnecessary

  4) tiny, simple, bulletproof script to take html and upload it to server

 Unnecessary

 5) dump all templates and scripts into github (or whatever)

 That bit's easy

  6) err - that's it!

 If you still have a 'build' step, it's horribly wrong.

 Any volunteers or am I going to have to do it all myself?

 /me steps back, has enough to do.

 --James




-- 
Help Perl newbies: http://www.send-a-newbie.com/
http://twitter.com/send_a_newbie



Re: Genius plan for the website!

2009-07-03 Thread Jonathan Stowe
2009/7/3 Dave Hodgkinson daveh...@gmail.com:

 On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:

  3) tiny, simple, bulletproof script to take templates and generate html
 pages


 Apache::Template FTW! Then cache on the front.


I hear that pastel-like seaside shades are very much in vogue this season.


-- 
http://rabidgravy.com/ - Music
http://gellyfish.co.uk/ - Everything else



Re: Genius plan for the website!

2009-07-03 Thread James Laver

On 3 Jul 2009, at 13:37, Edmund von der Burg wrote:


Nope - need to be able to view the final HTML without running a
server. Otherwise there is just yet another barrier to making changes
that stop people from doing things. A little build script is the
simplest possible compromise


Right, because it's not like we're all programmers or anything and may  
know how to set up a server. Or turn on the one that comes with OSX,  
install XAMPP from a handy windows package manager or type 'aptitude  
install apache2' (or yum or something else).


--James


Re: Genius plan for the website!

2009-07-03 Thread James Laver

On 3 Jul 2009, at 13:45, Jonathan Stowe wrote:


I hear that pastel-like seaside shades are very much in vogue this  
season.


Well PHP 5.3 was released this week. We should definitely use that.*

--James

*along with postgres. it's christmas, you know.


Re: Genius plan for the website!

2009-07-03 Thread Jonathan Stowe
2009/7/3 Edmund von der Burg e...@ecclestoad.co.uk:
 2009/7/3 James Laver james.la...@gmail.com:
 On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:

 Here is my cunning plan to regain the inner beauty:

  1) wget -r the current site to a bunch of static files

 We have a bunch of static files. The whole thing is generated from xml.

  2) tedious finding of repeated text replacing them with
 Template::Toolkit [% INCLUDE ... %]

 How about replacing them with !-- #include ... --  instead? I know we're a 
 perl website, but lets be pragmatic and not go overkill.

 Nope - need to be able to view the final HTML without running a
 server. Otherwise there is just yet another barrier to making changes
 that stop people from doing things. A little build script is the
 simplest possible compromise


You do know that it is already in a publicly accessible SVN server and
that it uses a little build script? - if it's just a fashion thing
re SVN  GIT than we can sort that out without needing to use the wget
part as it is already 'pre-baked'.

-- 
http://rabidgravy.com/ - Music
http://gellyfish.co.uk/ - Everything else



Re: Genius plan for the website!

2009-07-03 Thread Martin A. Brooks

On 03/07/2009 13:52, James Laver wrote:
Right, because it's not like we're all programmers or anything and may 
know how to set up a server


For the most part programmers don't know how to manage servers, that's 
why you're programmers and don't step up to become sysadmins.


Programmers are waify distractable mites with the attention span of a 
can of herring. Ever in search of The Next Big Thing and leaving 
steaming piles of crap behind for us sysadmins to look after, possible 
for years after the programmers are found dead in a ditch, assuming the 
bodies will be found at all.






Re: Genius plan for the website!

2009-07-03 Thread Simon Wilcox

On 3/7/09 13:45, Jonathan Stowe wrote:

2009/7/3 Dave Hodgkinson daveh...@gmail.com:

On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:

 3) tiny, simple, bulletproof script to take templates and generate html
pages


Apache::Template FTW! Then cache on the front.



I hear that pastel-like seaside shades are very much in vogue this season.


No. Bikesheds should obviously be green.

Edmund - do it whatever way you want  thanks for offering to do 
something :-)


S.


Re: Genius plan for the website!

2009-07-03 Thread Tom Barrett
2009/7/3 Martin A. Brooks mar...@antibodymx.net

 On 03/07/2009 13:52, James Laver wrote:

 Right, because it's not like we're all programmers or anything and may
 know how to set up a server


 For the most part programmers don't know how to manage servers, that's why
 you're programmers and don't step up to become sysadmins.

 Programmers are waify distractable mites with the attention span of a can
 of herring. Ever in search of The Next Big Thing and leaving steaming piles
 of crap behind for us sysadmins to look after, possible for years after the
 programmers are found dead in a ditch, assuming the bodies will be found at
 all.


You'd *so* love my config files.


Re: Genius plan for the website!

2009-07-03 Thread Uri Guttman
 DH == Dave Hodgkinson daveh...@gmail.com writes:

  DH On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:
   
   3) tiny, simple, bulletproof script to take templates and generate
   html pages


  DH Apache::Template FTW! Then cache on the front.

Template::Simple is the easiest and fastest one out there. and the
connection to london.pm is that one of your members funded its
conversion to a cpan module!

also it now has compiled templates (in git but not cpan yet) for even
more speed. and CMS::Simple (also git not cpan yet) is the tiny
bulletproof module and script that builds all the pages.

i now leave you to discuss.

uri

-- 
Uri Guttman  --  u...@stemsystems.com    http://www.sysarch.com --
-  Perl Code Review , Architecture, Development, Training, Support --
- Free Perl Training --- http://perlhunter.com/college.html -
-  Gourmet Hot Cocoa Mix    http://bestfriendscocoa.com -


Re: Genius plan for the website!

2009-07-03 Thread Dave Hodgkinson


On 3 Jul 2009, at 16:47, Uri Guttman wrote:


DH == Dave Hodgkinson daveh...@gmail.com writes:


 DH On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:


3) tiny, simple, bulletproof script to take templates and generate
html pages



 DH Apache::Template FTW! Then cache on the front.

Template::Simple is the easiest and fastest one out there


You missed both the point and the irony.

--
Dave HodgkinsonMSN: daveh...@hotmail.com
Site: http://www.davehodgkinson.com  UK: +44 7768 490620
Blog: http://davehodg.blogspot.com
Photos: http://www.flickr.com/photos/davehodg









Re: Genius plan for the website!

2009-07-03 Thread Dirk Koopman

Uri Guttman wrote:

DH == Dave Hodgkinson daveh...@gmail.com writes:


  DH On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:
   
   3) tiny, simple, bulletproof script to take templates and generate

   html pages


  DH Apache::Template FTW! Then cache on the front.

Template::Simple is the easiest and fastest one out there. and the
connection to london.pm is that one of your members funded its
conversion to a cpan module!

also it now has compiled templates (in git but not cpan yet) for even
more speed. and CMS::Simple (also git not cpan yet) is the tiny
bulletproof module and script that builds all the pages.

i now leave you to discuss.



Ok, I'll bite, where do I look for the non-(yet)cpan stuff?

Dirk


Re: Genius plan for the website!

2009-07-03 Thread Uri Guttman
 DH == Dave Hodgkinson daveh...@gmail.com writes:

  DH On 3 Jul 2009, at 16:47, Uri Guttman wrote:

   DH == Dave Hodgkinson daveh...@gmail.com writes:
   
  DH On 3 Jul 2009, at 12:32, Edmund von der Burg wrote:
   
   3) tiny, simple, bulletproof script to take templates and generate
   html pages
   
   
  DH Apache::Template FTW! Then cache on the front.
   
   Template::Simple is the easiest and fastest one out there

  DH You missed both the point and the irony.

it must be the funny accents you all have! :)

and i didn't miss it but more likely replied to the wrong letter in the
thread. the OP did mention TT.

uri

-- 
Uri Guttman  --  u...@stemsystems.com    http://www.sysarch.com --
-  Perl Code Review , Architecture, Development, Training, Support --
- Free Perl Training --- http://perlhunter.com/college.html -
-  Gourmet Hot Cocoa Mix    http://bestfriendscocoa.com -


Re: Genius plan for the website!

2009-07-03 Thread Uri Guttman
 DK == Dirk Koopman d...@tobit.co.uk writes:

  DK Uri Guttman wrote:
   Template::Simple is the easiest and fastest one out there. and the
   connection to london.pm is that one of your members funded its
   conversion to a cpan module!
   
   also it now has compiled templates (in git but not cpan yet) for even
   more speed. and CMS::Simple (also git not cpan yet) is the tiny
   bulletproof module and script that builds all the pages.
   
   i now leave you to discuss.
   

  DK Ok, I'll bite, where do I look for the non-(yet)cpan stuff?

cms is the cms::simple thing. it is raw and undocumented but works (the
perlhunter.com and bestfriendscocoa sites are built with it).  the big
win it has is that you can share content and also templates among
multiple pages with little effort.  i can send you tarballs of either
site tree if you want to play with the cms::simple thing.

the git repo is here. 

http://perlhunter.com/git/

this is a browsable version of the repo

http://perlhunter.com/git/gitweb/gitweb.cgi

thanx,

uri

-- 
Uri Guttman  --  u...@stemsystems.com    http://www.sysarch.com --
-  Perl Code Review , Architecture, Development, Training, Support --
- Free Perl Training --- http://perlhunter.com/college.html -
-  Gourmet Hot Cocoa Mix    http://bestfriendscocoa.com -