-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Brad Appleton wrote:
> Evert | Collab wrote:
>> Any suggestions on how to deal with this?
>
> So you are writing raw PHP code and then distributing the files, except
> you end up having to distribute slighly different versiosn of the files
> for different customers? Is that correct?
>
> If so, then would it be possible to auto-generate the PHP code with a
> more capable scripting langauge such as Perl, Python or Ruby? They each
> have some libraries that are capable of doing some nice things with text
> templates. For example, there is Text::Template in Perl, and also the
> text-template toolkit <<http://www.template-toolkit.org/>>
>
> With such a template toolkit, much of your PHP code could be the content
> of the template, and then you could use some of the higher-level
> encapsulation constructs of Perl/Python/Ruby to deal with the
> customer-specific portions of the template. This would give you full
> access to using design patterns like strategy, template-method,
> decorator, and others, to create a well modularized and encpasulated
> script + template that, when executed, can generate any/all of the
> appropriate customer-specific variants of PHP code.
Thanks for your suggestion, I actually found something that will work
even better for me: Ant. I also heard of a pure PHP implementation
called phing, but it's supposed to be less capable.. I'll check them
both out anyway a pure php solution would be nice =)
Evert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFDwjgnDnjzqg4SIdARAjxbAKDeqkEBiDKRnPzm5PfPd3rnGlF0TwCeM5lB
pBQgA8+EAG425ZQcoiR4bUM=
=oxcJ
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 9 10:56:40 2006