-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
App can't find embedded pug template files by go-bindata #1450
Comments
Hello @yansigit, indeed |
The issue is found at: https://github.com/Joker/jade/blob/d475f43051e722977ea1bfa344e52b1bafd832ba/jade_parse.go#L442-L454 which is called on pug |
It's fixed on master branch, you can test it out by More improvements :
It will be officially available on the next minor version, Again, thanks for the report. |
Thank you for super fast update @kataras!
go.mod
build scripts
Another difference is that the app cannot recognize template files even if it has template folder on same directory now. |
Hmm @yansigit this works here, I tested it without the templates and with the templates folder yesterday. Let me check it again. |
OK @yansigit, it was a minor addition... it really hurts my eyes (the code of jade go parser) but we support it so I fixed it, please test it and sorry for spent your time with this one. |
Thank you @kataras, working like a charm after updating framework 😊 |
No worries, but yes debugging is the best way to learn the framework too :) Just pushed the |
Former-commit-id: 617f64d061e88f050a443ea1751fa244164656c5
Former-commit-id: 43318477e7f8bf5f8c35fbf2f53922909a11d8fd
Former-commit-id: 2b8dfec7d43298bc9ace94595359867180634f04
Output when running the app
Go source
Building scripts
Folder structure
bindata.go
All template files are imported in bindata.go well, and imported them on main source using
Binary(Asset, AssetNames)
too, but it's not working...Pug files are all associated as expected with codes like include, block
Full source can be found in my repository
It's working if templates folder is on same location with compiled binary file, but what i want is embedding all static files to binary file.
I am not sure whether it's because of my mistake or bug, so I'll let it be as a question.
The text was updated successfully, but these errors were encountered: