'ui-form', ]; public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token) : string { if ( $token === 'ui.endform' ) { return ""; } list($action, $options) = array_pad(explode(',', $arguments), 2, null); $action = $this->trim($action); switch($token) { case "ui.form.get": $this->attributes['method'] = "get"; break; case "ui.form.post": $this->attributes['method'] = "post"; $this->attributes['enctype'] = "multipart/form-data"; break; default: case $this->token: $this->attributes['method'] = $this->defaultMethod; break; } $this->option('tag-type', 'single'); $this->attributes['action'] = $this->trim($action); $this->attributes($this->parseOptions($options)); return $this->render(); } }