class.compost.php
// Adding render function to compile and hash the style
Adding render function to compile and hash the style
Adding render function to compile and hash the style
public function render($location="footer")
    {
        $output = '';
        if (! $this->rendered[$location]) {
            if ($this->debug) var_dump("RENDERING START");
            $this->heap[$location]     = $this->miniFy($this->heap[$location]);
            $this->hash[$location]     = md5($this->heap[$location]);
            $output                   .= $this->write($location);
            $this->rendered[$location] = true;
            if ($this->debug) var_dump("RENDERING COMPLETE");
        }
        return $output;
    }
public function render ( $ location = " footer " ) { $ output = '' ; if ( ! $ this -> rendered [ $ location ] ) { if ( $ this -> debug ) var_dump ( " RENDERING START " ) ; $ this -> heap [ $ location ] = $ this -> miniFy ( $ this -> heap [ $ location ] ) ; $ this -> hash [ $ location ] = md5 ( $ this -> heap [ $ location ] ) ; $ output .= $ this -> write ( $ location ) ; $ this -> rendered [ $ location ] = true ; if ( $ this -> debug ) var_dump ( " RENDERING COMPLETE " ) ; } return $ output ; }
Adding render function to compile and hash the style
Adding render function to compile and hash the style