logo       

Re: ANNOUNCE: CAP::LinkIntegrity 0.02: msg#00085

Subject: Re: ANNOUNCE: CAP::LinkIntegrity 0.02
Michael Graham wrote:
> Thanks for the feedback, Michael!
> 
> 
>>What would be really cool is if the plugin could automatically rewrite
>>the links to be tamper proof for everything going out to the browser.
>>This could be done using a call back at postrun time with some HTML
>>parser. Of course this would be need to be turned on by the user (since
>>it could potentially be pretty slow) both globally and per run mode, and
>>then with the option of somehow disabling/enabling the tamper proof
>>filtering at run time in the run mode itself.
> 
> 
> Hmmm - that's an interesting idea.  I'm usually too much of a control
> freak to give the computer that much power, though.

Understood, but some of us like being hooked into the Matrix :)

I do think that one of the coolest things about plugins is how much they
can do for you without your thinking. At some point you do end of being
more specific as you go along, but a nice working default that is
invisible to the user is pretty darn cool (and very attractive to people
evaluating different approaches).

>>Or maybe there's a way to make this work from inside the template where
>>the programmer can decide for which URL's it makes a difference. Should
>>be pretty easy as a TT plugin, but might also work as H::T plugin with
>>Mark's new system.
> 
> 
> Yeah!  I like this approach!  And you can do this already if you use
> Cees's technique of passing in the CGI::Application $self object into
> the template params:
> 
>   # in your run mode (AnyTemplate syntax)
>   $self->template->fill({'c' => $self);
> 
>   # in your TT template:
>   <a href="[% c.make_link('/account.cgi?rm=balance&acct_id=73') %]">
> 
>   # or in your HT::Dot template:
>   <a href="<TMPL_VAR c.make_link('/account.cgi?rm=balance&acct_id=73')>">
> 
> I'll add this technique to the docs when I get a chance.

Yeah, I guess I should have thought of that too. Examples are good.

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe