-
Notifications
You must be signed in to change notification settings - Fork 57
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
Not finds a file with two and more extensions #14
Comments
I'm having the same issue, for example using If I didn't find this issue thread, I wouldn't have even known that this was the reason my .html templates weren't rendering. |
@YouROK Hi, I fixed the @hsdk123 Hi, your problem looks different from @YouROK's one. What does your code look like? I may specify the reason of your problem if I can see the code. Thanks. |
@yosssi Thanks for the help offer - while I was trying to create a minimal code sample, I realised that for some reason templates started to work again with I don't know what's happened, but I'll open an issue in a separate thread if I bump into the problem again. Thanks! |
@hsdk123 Thanks for your reply. If you will face a problem, please open an issue. Thanks. |
I use:
render.Renderer(render.Options{Directory: "views", Layout: "layout", Extensions: []string{".go.html",".html"}})
files in dir views:
layout.go.html
hello.go.html
http output:
html/template: "layout" is undefined
if I rename files and remove .go then all ok
The text was updated successfully, but these errors were encountered: