> I just posted JPluck 2.1 beta 1. Please test out this release to help me
> catch any major bugs in time for 2.1 final.
It appears to only support one uriRewrite per site - not sure if this is
intentional or not, but at least one Showcase site seems to use more than
one...
Here's what I've been testing with:
<site unresolvedLinkColor="#ff0000">
<name>The Straight Dope</name>
<uri maxDepth="1"
restrict="domain">http://www.straightdope.com/</uri>
<uriRewrite pattern=".*" value="${str:replace(uri, 'straightdope/',
'')}"/>
<uriRewrite pattern=".*" value="${str:replace(uri, '../', '')}"/>
<images>
<embedded bpp="8" maxHeight="300" maxWidth="300"/>
</images>
<schedule>
<daily hour="0" minute="0"/>
</schedule>
</site>
Only the first-defined uriRewrite takes effect. I can reverse the definition
order and the other uriRewrite works fine, so it's probably not a problem
with my regexp.
Here's the Showcase site that uses more than one uriRewrite:
<site language="en" linkColor="blue">
<name>Artima.com</name>
<uri maxDepth="1">http://www.artima.com/index.jsp</uri>
<uriRewrite pattern=".*\.html" value="${str:replace(str:replace(uri,
'.html', 'P.html'), '../', '')}"/>
<uriRewrite pattern=".*\.\./.*" value="${str:replace(uri, '../',
'')}"/>
<images>
<embedded bpp="8" maxHeight="160" maxWidth="160"/>
...
--
- combs
[EMAIL PROTECTED]
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Laurens M.
> Fridael
> Sent: Saturday, February 21, 2004 16:51
> To: [EMAIL PROTECTED]
> Subject: JPluck 2.1 beta 1
_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list