Is there any function do the same result like PHP ob_start(myCallbackFunction)
and ob_end_flush()
that allow me modify the layouts and views in Python frameworks (Django/others)? thanks!
UPDATE
<?php
ob_start(function($res){
echo str_replace('test','new string',$res);
});
?>
test
test
test
test
<?php ob_end_flush(); ?>