public function pix($text, Mustache_LambdaHelper $helper) {
        // Split the text into an array of variables.
        $key = strtok($text, ",");
        $key = trim($helper->render($key));
        $component = strtok(",");
        $component = trim($helper->render($component));
        if (!$component) {
            $component = '';
        }
        $component = $helper->render($component);
        $text = strtok("");
        // Allow mustache tags in the last argument.
        $text = trim($helper->render($text));

        return trim($this->renderer->pix_icon($key, $text, $component));
    }
public function pix($text, Mustache_LambdaHelper $helper) {
        // Split the text into an array of variables.
        $key = strtok($text, ",");
        $key = trim($helper->render($key));
        $component = strtok(",");
        $component = trim($helper->render($component));
        if (!$component) {
            $component = '';
        }
        $component = $helper->render($component);
        $text = strtok("");
        // Allow mustache tags in the last argument.
        $text = trim($helper->render($text));

        return trim($this->renderer->pix_icon($key, $text, $component));
    }
public function pix ( $ text , Mustache_LambdaHelper $ helper ) { // Split the text into an array of variables. $ key = strtok ( $ text , "," ) ; $ key = trim ( $ helper -> render ( $ key ) ) ; $ component = strtok ( "," ) ; $ component = trim ( $ helper -> render ( $ component ) ) ; if ( ! $ component ) { $ component = '' ; } $ component = $ helper -> render ( $ component ) ; $ text = strtok ( "" ) ; // Allow mustache tags in the last argument. $ text = trim ( $ helper -> render ( $ text ) ) ; return trim ( $ this -> renderer -> pix_icon ( $ key , $ text , $ component ) ) ; }
Read a pix icon name from a template and get it from pix_icon.

{{#pix}}t/edit,component,Anything else is alt text{{/pix}}

The args are comma separated and only the first is required.

@param string $text The text to parse for arguments.
@param Mustache_LambdaHelper $helper Used to render nested mustache variables.
@return string
Read a pix icon name from a template and get it from pix_icon .