Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLatte: |noescape is order independent #799
Open
Comments
|
It works as you write. Do you have any idea when this behavior might confuse someone? (Latte docs is in branch nette.org https://github.com/nette/docs/tree/nette.org) |
|
If you don't it's just a flag, there can be misunderstanding when combine with other filters. You start thinking if comes firt translation or escaping, replace or escapint, etc. But the result is that everything goes in the left to right order and after all is noescape applied. I must be blind. I didn't see latte folder in docs repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good news everyone,
as all we know Latte filters are applied from left to right - except
|noecape. Internaly ecaping is just a flag turning off escaping of current literal. (Hope I've found the correct source doing this.)In documentation there is no mention the order in filters of
|noescapematters.PS: I'd like to add this note, bute there's no way how to edit Latte docs.