direct parsing of templates

3 views
Skip to first unread message

webEater

unread,
May 27, 2008, 8:55:41 AM5/27/08
to JSmarty
Hi,

how do I parse templates directly, e.g.:

myJSmarty = new JSmarty();
// ...
myJSmarty.display('Hallo {$name}, you are welcome!');

I don't want to make a new Ajax Request for every template. Instead I
want to have the template inside my code.

Shogo ENDO

unread,
May 27, 2008, 9:14:46 AM5/27/08
to jsm...@googlegroups.com
Hi,

You can parse templtates directly, e.g..

myJSmarty = new JSmarty();
// ...

myJSmarty.display('string:Hallo {$name}, you are welcome!');


Thanks.

Reply all
Reply to author
Forward
0 new messages