WebOrganics / php-closure

Automatically exported from code.google.com/p/php-closure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Needs a way to return JS as string

GoogleCodeExporter opened this issue · comments

Just a suggestion, but it should would be handy to return the source as a 
string instead of echoing it.

function returnJS($compile=true){
        if($compile == TRUE){
            return $this->_compile();
        }else{
            $scripts = '';
            foreach($this->_srcs as $src){
                $scripts .= @file_get_contents($src);
            }
            return $scripts;
        }
    }


Original issue reported on code.google.com by keith%ki...@gtempaccount.com on 15 Dec 2010 at 7:59