-
Notifications
You must be signed in to change notification settings - Fork 204
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
The content within block is being attempted to be included as a file. #57
Labels
Comments
@snouker, is it possible to give a full example on how to reproduce this? |
@bungle
this is the error:
this is the result of output:
|
I tried this and got:
|
But you are right, I also get:
in logs. |
Seems like a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a file defining some blocks, such as
When I use
template.render("some.html")
, an error occurs:I spent some time reading code, and identified the issue at
lua-resty-template/lib/resty/template.lua
Line 584 in 2822213
Deleting it will result in the blocks content not being processed!
I added a function
local function plain(v, c) return template.process_string(v, c or context) end
at line 413 and replace line 584 withc[j+2] = '"]=plain[=['
, and the issue disappeared.I'm not sure this change is necessary anymore.
The text was updated successfully, but these errors were encountered: