-
Notifications
You must be signed in to change notification settings - Fork 423
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
Template containing html is loaded as empty #368
Comments
I don't see anything in this file that would result in it not loading. What happens if you replace the template content with static text? Does it load and render properly? |
Tried that and still get the same problem. I very much doubt this is a Mustache problem because all my other templates are working correctly, just wish I could figure out why it's happening. |
OK, I figured this out - the file permissions were set incorrectly, allowing read access to User only. Once I fixed that, all works OK. Not sure if it's possible but would be good if a permissions errors could be caught. |
It might be possible. Do you know what specifically they were set to? |
Yes, they were set to #600 when I was getting the error and I changed them to #644 to fix the problem. I don't know enough about website file permissions to say that #644 is the only correct setting, I just used that because all the other templates were set that way. |
I'm having a strange problem with one of the many templates I'm using.
The bottom line is that the template and the array I pass to the render function results in an empty string.
I inserted a couple of debug statement in the FilesystemLoader.php script in the load function to display the the content of $this->templates[$name] and I can see that an empty string is loaded instead of the template contents. The $name parameter contains the correct file name. No errors are returned by Mustache.
If I delete the file, I get a Mustache error that the template can't be found so I'm requesting the correct template.
The name of the template file is "users_table", it has the normal .mustache suffix and is in the correct template directory. I've attached it below.
users_table.mustache.zip
I'm at a loss to figure out what's causing this problem so grateful for any suggestions.
Pete
The text was updated successfully, but these errors were encountered: