original_string: public function template($var = null)
      {
          if ($var !== null) {
              $this->template = $var;
          }
          if (empty($this->template)) {
              $this->template = ($this->modular() ? 'modular/' : '') . str_replace($this->extension(), '', $this->name());
          }
  
          return $this->template;
      }
code: public function template($var = null)
      {
          if ($var !== null) {
              $this->template = $var;
          }
          if (empty($this->template)) {
              $this->template = ($this->modular() ? 'modular/' : '') . str_replace($this->extension(), '', $this->name());
          }
  
          return $this->template;
      }
code_tokens: public function template ( $ var = null ) { if ( $ var !== null ) { $ this -> template = $ var ; } if ( empty ( $ this -> template ) ) { $ this -> template = ( $ this -> modular ( ) ? 'modular/' : '' ) . str_replace ( $ this -> extension ( ) , '' , $ this -> name ( ) ) ; } return $ this -> template ; }
docstring: Gets and sets the template field. This is used to find the correct Twig template file to render.
  If no field is set, it will return the name without the .md extension
  
  @param  string $var the template name
  
  @return string      the template name
docstring_tokens: Gets and sets the template field . This is used to find the correct Twig template file to render . If no field is set it will return the name without the . md extension