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
I try to use this template code (for Node JS):
res.render('index', {fname: 'include.smarty'});
{include file="$fname"}
Result:
Error: ENOENT: no such file or directory, open 'C:\OSPanel\domains\express\partials\$fname'
If I use it like this:
{include file="include.smarty"}
Returns normal response.
What could be the problem when using variables in include?
The text was updated successfully, but these errors were encountered:
this plugin does not cover it. You need to write your own code for that. I had this problem and I just rewrote some functions.
Sorry, something went wrong.
No branches or pull requests
I try to use this template code (for Node JS):
res.render('index', {fname: 'include.smarty'});
{include file="$fname"}
Result:
If I use it like this:
{include file="include.smarty"}
Returns normal response.
What could be the problem when using variables in include?
The text was updated successfully, but these errors were encountered: