added {include with blocks} as a successor to {includeblock}#152
Merged
Conversation
Contributor
|
I hate the syntax. Also include related stuff are changed way too often -> deeper analysis is required. |
Member
Author
|
Do you have a better idea about syntax? |
Contributor
|
Not yet. I don't want to rush this change just to change it in two weeks again. |
Member
Author
|
I don't know what are you talking about. |
Member
|
The syntax |
Member
Author
|
|
dc17ef3 to
7550eb3
Compare
118e433 to
2f2e445
Compare
beacf44 to
ee18dfc
Compare
e83378c to
1ed4097
Compare
91a8964 to
d4f519e
Compare
d3ff96d to
47c1926
Compare
c47c70b to
d22cb9c
Compare
4f240c6 to
109df34
Compare
39aa81f to
b84b994
Compare
Member
Author
|
Changed to |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are use cases where
{includeblock}is useful and cannot be substituted by{import}. But the name{includeblock}is misleading. This is attempt to solve it by more understandable{include with blocks 'file.latte'}Cons: this introduces syntax which is not common in Latte.
https://forum.nette.org/cs/26699-latte-vypis-bloku-do-include