-
Notifications
You must be signed in to change notification settings - Fork 35
Getting Started
Using client side templates lets you avoid hassle of tedious and error-prone manual manipulations with strings and DOM objects, and helps you create Model-View-Controller JavaScript application where the presentation and the logic are clearly separated. The templates can also be shared in two different technologies like PHP and NODE JS.
Although there are a lot of JavaScript template engines available, jSmart has some unique features that sets this project apart from the rest.
jSmart implements rich and well established syntax of the popular PHP template engine Smarty familiar to many developers around the world. Together with limited build-in support for PHP language constructs and libraries like php.js it creates possibility to use the same set of templates in two technologies like PHP and JavaScript. JavaScript could be either on browser-side or on the service side using Node js.
jSmart documentation is still incomplete, but you can use Smarty documentation on www.smarty.net/docs/en/. Almost all of Smarty 3 (and Smarty 2) syntax is supported.