Has anyone tried to add Jade support in Kohana (3.3)?
I found a repository with the module, https://github.com/pocesar/jade-kohana, but it does not work (apparently, for the old version).
If anyone succeeds, share your experience.
UPD
Mistake
ErrorException [ Fatal Error ]: Method Kohana_JadeView::__toString() must not throw an exception SYSPATH/classes/Kohana/Response.php [ 0 ] 1 <?php defined('SYSPATH') OR die('No direct script access.'); 2 /** 3 * Response wrapper. Created as the result of any [Request] execution 4 * or utility method (ie Redirect). Implements standard HTTP 5 * response format. {PHP internal call} » Kohana_Core::shutdown_handler() Controller code
<?php defined('SYSPATH') or die('No direct script access.'); class Controller_Test extends Controller { function action_index() { $this->response->body(JadeView::factory('jtemplate')); } } Pattern code
!!! html head title Hello Jade World body h1=hello