chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Spiffy - ssp-handler - how to extend ssp-eval-enviro


From: Peter Bex
Subject: Re: [Chicken-users] Spiffy - ssp-handler - how to extend ssp-eval-environment
Date: Mon, 26 Mar 2012 09:18:39 +0200
User-agent: Mutt/1.4.2.3i

On Mon, Mar 26, 2012 at 12:02:13AM -0300, Arthur Maciel wrote:
> Hello!

Hi!

> I would like to know how it is possible to extend 'ssp-eval-environment' to
> add variables that could be accessed when processing .ssp files with
> 'ssp-stringize' or 'ssp-include'.

It's a regular old environment object that gets passed to eval.
It used to be that you could extend these environments, but I'm unsure
about the current state of first-class environments.  It used to be that
you could use the "environments" egg to extend these, but they've had
a major overhaul and I think that egg no longer functions.

Please note that ssp is deprecated and ugly as hell.  If you want
to program PHP, use the real thing and get the full "experience" ;)

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth



reply via email to

[Prev in Thread] Current Thread [Next in Thread]