Philip,

> I wanted to use a PHP template system with CakePHP..

Why? Please read this. [0]

> My idea was to convert the PHP variables to Javascript using JSON (but
> didn't work out how to do this successfully). Then to use these
> variables in Javascript to be passed through the Javascript template
> as above.

*blinks* Are you on sure you really want to do this? The TrimPath
engine is meant for static (ie non server-side) pages to be able to
perform quasi-queries on static data (say, a whole load of HTML pages
burnt to a CD or DVD), not to do the job of PHP.


--lamby

[0]
http://www.phppatterns.com/docs/design/templates_and_template_engines

-- 
 Chris Lamb, Cambridgeshire, UK                  [EMAIL PROTECTED]
  WWW: www.chris-lamb.co.uk                             GPG: 0x634F9A20

Attachment: signature.asc
Description: PGP signature

Reply via email to