public function get($tag)
    {
        if ($this->isTopTag($tag)) {
            return $this->template;
        }
        $v = $this->tags[$tag][0];
        if (is_array($v) && count($v) == 1) {
            $v = array_shift($v);
        }

        return $v;
    }
public function get($tag)
    {
        if ($this->isTopTag($tag)) {
            return $this->template;
        }
        $v = $this->tags[$tag][0];
        if (is_array($v) && count($v) == 1) {
            $v = array_shift($v);
        }

        return $v;
    }
public function get ( $ tag ) { if ( $ this -> isTopTag ( $ tag ) ) { return $ this -> template ; } $ v = $ this -> tags [ $ tag ] [ 0 ] ; if ( is_array ( $ v ) && count ( $ v ) == 1 ) { $ v = array_shift ( $ v ) ; } return $ v ; }
Finds tag and returns contents.

THIS FUNTION IS DANGEROUS!
- if you want a rendered region, use renderRegion()
- if you want a sub-template use cloneRegion()

- if you want to copy part of template to other SMlite object,
do not forget to call rebuildTags() if you plan to refer them.
Not calling rebuildTags() will render template properly anyway.

If tag is defined multiple times, first region is returned.
Finds tag and returns contents .