Calypso Framework - Django Template Language A PHP Django Template Language Clone for the Zend_Framework ================================================ Author: Benjamin Eberlei (benny at whitewashing dot de) License: BSD License This is the first version of a Zend Framework View Interface implementing the Django Template Engine as used by the Python Framework Django. It can be also be used Standalone, without the Zend Framework Dependency. The Engine is currently a proposal of me for extension to the Zend Extras library: http://framework.zend.com/wiki/display/ZFPROP/Zend_View_Dtl+-+Benjamin+Eberlei It replicates almost all tags and filters currently and passes many unit tests for all parts of the engine as described under: http://www.djangoproject.com/documentation/templates/ An extension has been implemented to allow the possibilty to serve parts of the template by the Client via Javascript and the DojoX DTL implementation. This works as follows: {% ajax "csshook" "url" %} ..various dtl language statements here... {% endajax %} Puts the inner ajax block onto a Client DTL Stack which can then be rendered as DojoX DTL Requests using: {% dtlstack %} The template will be hooked into "csshook" using context data that has to be served from "url" via JSON. ================= Using Calypso DTL ================ A full fleged demo is bundled with this release. See it for more information. Currently Calypso_View_Dtl can only function with an Autoloading component like the Zend_Loader since no require or includes are made throughout the scripts. The component has to reside in the include path (use set_include_path()): require_once "Zend/Loader.php"; Zend_Loader::registerAutoload(); $view = new Calypso_View_Dtl(); $view->assign('var', $var); $view->var = $var; echo $view->render('dtltemplate.tpl');