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
Template example: "{if $info = "test"}{$info}{/if}" Expected result: "test" Actual result: empty string, no execution of code inside the "if" block.
This construction is functioning in PHP version of Smarty.
Code to reproduce:
The text was updated successfully, but these errors were encountered:
Bug has been fixed in master, should be live in few days in npm
Sorry, something went wrong.
No branches or pull requests
Template example: "{if $info = "test"}{$info}{/if}"
Expected result: "test"
Actual result: empty string, no execution of code inside the "if" block.
This construction is functioning in PHP version of Smarty.
Code to reproduce:
<script> var templateText = '{if $info = "test"}{$info}{/if}'; window.onload = function() { var template = new jSmart(templateText); document.getElementById('test').innerHTML = template.fetch(); }; </script>The text was updated successfully, but these errors were encountered: