Bug #44140
Unlucky JavaScript syntax can break inline tags
Status: | Resolved | Start date: | 2012-12-20 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | ViewHelpers | |||
Target version: | - | |||
Has patch: | No | Affected Flow version: | Git master |
Description
After troubleshooting a problem with econic, we have found an issue that can break the parsing of inline tags. The problem originated from using JavaScript in a template, which broke all inline view helpers after the JavaScript. After boiling down to the core problem, it seems that it doesn't have anything to do with the JavaScript itself but instead using {} and indentation.
The original issue source: http://pastebin.com/pkCjwUHd
Snippets for reproducing the problem:
https://gist.github.com/4341615
https://gist.github.com/4341668
In my case I needed at least 16 tabs or 16 spaces for it to break, but econic only needed 13.
The result in both cases is:
{collection -> f:count()}
{f:count(subject: collection)}
0
Related issues
History
#1 Updated by Christian Müller over 1 year ago
- Status changed from New to Resolved
Should be resolved via http://forge.typo3.org/issues/43356
Otherwise please reopen if necessary.