Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
StaticEmbeddedHandler Question #784
I have question about this line:
app.RegisterView(iris.HTML("../../dist", ".html").Binary(Asset, AssetNames))
it worked yesterday already on some other project of mine, but today I am getting
src/api/main.go:45:59: undefined: Asset src/api/main.go:45:66: undefined: AssetNames
and having underlined this line with red in
Thanks for your nice words about the framework, I really appreciate it, I've worked thousands of hours over the last 2 years for this result.
About your issue, it's very easy to solve:
I made it to recognize the "../../" paths inside the HTML engine but it is not really necessary so I will comment that on the commit I'll push soon but in order that to worked you had to run
The problems were two 1) you didn't compile the
thanks for your extensive answer. I have frontend SPA application that is compiled into
About the framework, I really appreciate your work on this framework, I think is the best one from all go web frameworks, at least for what I could find. Hope you will continoue with the good work.
Closing this issue as resolved.