perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew O'Brien" <andr...@oriel.com.au>
Subject RE: Embperl Abandoned: Next Steps?
Date Tue, 21 Oct 2008 23:01:39 GMT

Hi Kee,

> I actually have a library that integrates Embperl into Catalyst so  
> that you ca use it instead of the default system (Template 
> Toolkit).   
> Embperl is faster and uses less memory than TT. I have the module  
> working in a production site, and while it needs documentation and  
> code cleanup, I'd be happy to share it with folks and even set up a  
> source repository if people are interested in assisting with the  
> development.

Ideally I would like to see this live in the Embperl repo but as that is
perhaps a little less accessible (as in read-only for most of us) making
it available in its own repo is certainly a good first step to getting
this improved / documented / used outside your one site.

Launchpad seems to be the hosted repository 'du jour'.

> I've also added some Embperl syntax additions (see below).
[...]
> In particular, the ability to write syntax extensions in
> Perl would be a big win and would make it easier to create
> libraries to help people move from other systems. The other
> piece that would greatly help adoption would be integrating
> an AJAX system into Embperl.

Couldn't agree more.

> Syntax Additions
> [% %]
> Unescaped output. Much easier than
> [+ do { local($escmode) = 4; ... } +], particularly useful
> for generating Javascript.

Handy shortcut, I like it. Would it be difficult for you to provide a
patch against the current svn trunk back to Gerald on this one?

> [$ set VARIABLE EXPRESSION $]
> Sets a module-local "variable" (actually a method call) to the
> passed-in value[s].

The only improvement over Embperl object's inherited sub calls I can see
here is the removal of non-unique elements. Let me know if I'm missing
something :)

There are only 2 subroutines in my main site where this could have been
used and there I just do something like this:

[!
  sub jsfiles {
    my $self = shift;
    return [ @{$self->SUPER::jsfiles}, '/some/path/to/other/file.js' ];
  }
!]

To make that strip out duplicates is a small addition. I guess if you're
doing this in lots of subs then its worth a special syntax.

I look forward to seeing the Catalyst library - that is certainly worth
improving to provide an alternative to TT/Mason. Embperl is superior
after all :)

Thanks for working on improving Embperl!

Cheers,

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message