Skip to content
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

Constants + filer leads to too many shorthand attributes #22

Open
kumy opened this issue Apr 18, 2021 · 1 comment
Open

Constants + filer leads to too many shorthand attributes #22

kumy opened this issue Apr 18, 2021 · 1 comment

Comments

@kumy
Copy link
Contributor

kumy commented Apr 18, 2021

Hi,

tsmarty2c fails to parse {GK_WAYPOINT_SERVICE_URL_GC|link:null:'_blank' nofilter} while it work well with smarty itself.
In this case, GK_WAYPOINT_SERVICE_URL_GC is a php constant

        define('GK_WAYPOINT_SERVICE_URL_GC', getenv('GK_WAYPOINT_SERVICE_URL_GC') ?: 'https://www.geocaching.com');

The error is reported as:

In smarty_internal_templatecompilerbase.php line 22:

  Syntax error in template "file:/xxxxx.tpl"  on line 22 "<td>{GK_WAYPOINT_SERVICE_URL_GC|link:null:'_blank' nofilter}</td>" too many shorthand attributes
@kumy
Copy link
Contributor Author

kumy commented Apr 18, 2021

As a workaround, lets write it as:

<td>{{GK_WAYPOINT_SERVICE_URL_GC}|link:null:'_blank' nofilter}</td>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant