>>953

これはどうだろう?

> -- template.php --
<?
 $edit = new Edit('abc');
 $contents = $edit->execute()
?>
> <?=$contents?>

> -- edit.php --
> class Edit{
>  private $template;
>  public function __constract($abc){
>   $this->template = <<<EOL
> ほえほえ{$abc}
> EOL;
>  }
>  pulic function excute(){
>   return $this->template;
>  }
> }
> -- index.php --
> include( 'edit.php' );
> include( 'template.php' );

動作確認していないのでなんともいえないけど。