Closed ampmonteiro closed 1 year ago
This is actually documented behavior https://latte.nette.org/en/syntax#toc-tags
If the { character is followed by a quote or space, Latte doesn't consider it to be the beginning of a tag, so you can use JavaScript constructs, JSON, or CSS rules in your templates without any problems.
Version: 3.0.5
Bug Description
when i am printing a variable or a result of function will not output correctly the data or even apply filters, when start with space.
Steps To Reproduce
lattefield
Expected Behavior
Like others template engine or even on php when using short print way, it will display even when start with a space
Possible Solution
Some how should be trimmed before being processed.