Re: Extending HTML syntax

2003-02-14 Thread Gerald Richter
release b9 at the weekend Gerald > Yatin > > - Original Message - > From: "Gerald Richter" <[EMAIL PROTECTED]> > To: "Yatin Chawathe" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, February 14, 2003 2:01 PM > Subject:

Re: Extending HTML syntax

2003-02-14 Thread Yatin Chawathe
<[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 2:01 PM Subject: Re: Extending HTML syntax > > > Hi, > > > > $self->AddTag('epimg', ['width', 'height'], ['src'], undef, > > { > > perlcode => > >

Re: Extending HTML syntax

2003-02-14 Thread Gerald Richter
Hi, > > $self->AddTag('epimg', ['width', 'height'], ['src'], undef, > { > perlcode => >'my ($w, $h, $src); > $w = %&width%; > $h = %&height%; > $src = %&src%; > if (!defined $w && !defined $h) { > ($w, $h) = my_own_func_to_get_img_d

Extending HTML syntax

2003-02-13 Thread Yatin Chawathe
Hi, I am trying to create a new HTML tag to be interpreted by Embperl as follows: I want to be replaced with: I have the following code in a subclass of Embperl::Syntax::HTML which almost gets me there: $self->AddTag('epimg', ['width', 'height'], ['src'], undef, {