New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags named starting with `if` are not working in Antlers #1849

Closed
efoken opened this Issue Mar 21, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@efoken

efoken commented Mar 21, 2018

Expected behaviour

We have a customer named iF design, so I have some addons starting with IfDesign. I want to use tags like if_design:example in Antlers templates.

Actual behaviour

The tags startings with if are not working. The parser says there is missing an endif 😉

Steps to reproduce

  1. Create an addon called IfDesign
  2. php please make:tags IfDesign
  3. Try to use the if_design:example tag in Antlers templates

Server Details

Operating System: macOS

Web Server: CLI server

PHP Version: 7.1.14

Statamic Version: 2.8.8

Updated from an older Statamic or fresh install: Updated

List of installed addons: IfDesign

Logs

FatalThrowableError in Parser.php(1234) : eval()'d code line 5:
Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)

@efoken efoken changed the title from Tags named starting with "if" are not working in Antlers to Tags named starting with `if` are not working in Antlers Mar 21, 2018

@jackmcdade jackmcdade closed this Mar 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment