Thursday·26·January·2006
Catalyst SVN
How to check out the Catalyst CPAN distro via SVN
How to import sources
Browse for the directory you want thens!browser!repos/Catalyst!
e.g.:
svn import CatalystAdvent-Seamstress/
http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/CatalystAdvent-Seamstress
maps to http://dev.catalyst.perl.org/browser/trunk/examples/CatalystAdvent-Seamstress
// show without comments // write a comment // Trackback URL
Perl Search Indexing Options
- Plucene
- A Perl port of Lucene
- Lucene as a web service
- Brian Cassidy has Perl bindings for it.
- Xapian
- might be good, but very little support
// show without comments // write a comment // Trackback URL
Wednesday·25·January·2006
When writing Seamstress pages, componentize your tree transforms
Working with our Mason codebase today showed me something that would have been a lot harder in Seamstress. Basically, I was told to add a vonage advertisement in another table cell everywhere that we displayed a vbase_banner.
Up to this point, all pages using the vbase_banner looked something like this:
<& 'comp/related_topics_lander_2', aconf => $aconf, query => $query &>
<& 'comp/vbase_banner', aconf => $aconf, query => $query, align => 'left' &>
% if ($query->{'brand'} eq 'tbar') {
<& 'comp/tbar_foot', aconf => $aconf, query => $query &>
% } else {
<& 'comp/quickfoot', aconf => $aconf, query => $query, align => 'center' &>
% }
<& 'comp/footer', aconf => $aconf, query => $query &>
|
So all I had to do was toss a bit of logic in vbase_banner for the vonage_ad and I was done:
|
|
% if ($query->{pagetype} ne ‘KEY’) {
<& vonage_ad &>
% } |
|
With Seamstress, one could componentize a page by creating subroutines for processing each part, but one does not have to. This is a downfall in Seamstress in a sense. But nevertheless, with Params::Validate and HTML::Tree, one can still do the trick, but one must be disciplined about placing each tree transformation into a separate subroutine instead of having a subroutine with a series of
The end result of disciplined Seamstress usage is that you can refine subroutines and make wholesale changes across several webpages if they all point to the same place
// show without comments // write a comment // Trackback URL
CatalystAdvent example converted from tt to Seamstress
You can view the source here and download via
svn co
http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/CatalystAdvent-Seamstress
// show without comments // write a comment // Trackback URL
Charting Modules
- Chart by the Chart Group. seems like a focused set of people :)
// show without comments // write a comment // Trackback URL
Woven with HTML::Seamstress
- http://hp.qsrch.com/?prt=nn26&s=love
- http://hp.qsrch.com/?prt=nn26&s=lkajdfjak;lsdf
- http://hp.qsrch.com/?prt=sb01&s=love
- http://hp.qsrch.com/?prt=sb01&s=lkajdfjak;lsdf
// show without comments // write a comment // Trackback URL
My first Seamstress user!
I was elated to have a user of my module HTML::Seamstress. here is the bug he filed against Seamstress - and complete with a patch!
I am glad to have co-developer.
// show without comments // write a comment // Trackback URL
Terrence Brannon
Matthew Sisk
