Re: [htmltmpl] H::T::Expr and escape
Brought to you by:
samtregar
From: Michael P. <mp...@pl...> - 2006-04-14 18:21:54
|
Michael Peters wrote: > > Sam Tregar wrote: >> On Fri, 14 Apr 2006, Michael Peters wrote: >> >>> So by making the "parser smart enough" do you mean copying that huge >>> regex from H::T and modifying it with the expr regex? >> Yeah, or using Parse::RecDescent. H::T::E already uses it for >> expressions, so using it for parsing the template itself might not be >> much slower. > > I'll try my simple approach and see how that works first. This is a very simple (naive?) approach, so I may have missed something, but it seems to work. -- Michael Peters Developer Plus Three, LP |