-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Latte: rewritten Runtime as non-static class
- Loading branch information
Showing
19 changed files
with
216 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
<?php | ||
%A% | ||
$form = $this->global->formsStack[] = $this->global->uiControl['myForm'] /* line %d% */; | ||
Nette\Bridges\FormsLatte\Runtime::initializeForm($form); | ||
$this->global->forms->begin($form = $this->global->uiControl['myForm']) /* line %d% */; | ||
echo '<form'; | ||
echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), [], false) /* line %d% */; | ||
echo $this->global->forms->renderFormBegin([], false) /* line %d% */; | ||
echo '> | ||
<button'; | ||
echo ($ʟ_elem = Nette\Bridges\FormsLatte\Runtime::item('send', $this->global)->getControlPart())->attributes() /* line %d% */; | ||
echo ($ʟ_elem = $this->global->forms->item('send')->getControlPart())->attributes() /* line %d% */; | ||
echo '> | ||
description of button | ||
</button> | ||
<button'; | ||
echo ($ʟ_elem = Nette\Bridges\FormsLatte\Runtime::item('send', $this->global)->getControlPart())->attributes() /* line %d% */; | ||
echo ($ʟ_elem = $this->global->forms->item('send')->getControlPart())->attributes() /* line %d% */; | ||
echo '></button> | ||
<button'; | ||
echo ($ʟ_elem = Nette\Bridges\FormsLatte\Runtime::item('send', $this->global)->getControlPart())->attributes() /* line %d% */; | ||
echo ($ʟ_elem = $this->global->forms->item('send')->getControlPart())->attributes() /* line %d% */; | ||
echo '>'; | ||
echo LR\Filters::escapeHtmlText($ʟ_elem->value) /* line %d% */; | ||
echo '</button> | ||
'; | ||
echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd(end($this->global->formsStack), false) /* line %d% */; | ||
echo $this->global->forms->renderFormEnd(false) /* line %d% */; | ||
echo '</form> | ||
'; | ||
array_pop($this->global->formsStack); | ||
$this->global->forms->end(); | ||
%A% |
Oops, something went wrong.