We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would be nice to have following possibility in latte:
{capture $loginUrl}<a n:href="Auth:login 'ref' => $currentUrl">{_locale.common.login}</a>{/capture} <p n:if="!$user->isLoggedIn()">{_locale.common.loginInfo, ['url' => $loginUrl|noescape]}.</p>
It is not possible to use helper (noescape in this case) with placeholder to avoid escaping of captured link.
The text was updated successfully, but these errors were encountered:
If you trust the contents of locale.common.loginInfo, simple
locale.common.loginInfo
{capture $loginUrl}<a n:href="Auth:login 'ref' => $currentUrl">{_locale.common.login}</a>{/capture} <p n:if="!$user->isLoggedIn()">{!_locale.common.loginInfo, ['url' => $loginUrl]}.</p>
should work
Sorry, something went wrong.
And what if you cannot trust the contents of locale.common.loginInfo?
There is no shortcut currently.
Thanks for the tip, for me it is enough for the moment.
No branches or pull requests
Would be nice to have following possibility in latte:
It is not possible to use helper (noescape in this case) with placeholder to avoid escaping of captured link.
The text was updated successfully, but these errors were encountered: