-
-
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
iris.Jet: no view engine found for '.jet' or '.html' #1327
Comments
Hello Josef, I see, the problem is on I will implement the http method override feature and fix that issue (which is not only on jet but in general), which is quite easy, tomorrow as I am 26 hours asleep straight already... Meanwhile you can just use the |
Actually I've just pushed a fix. |
Hello, Gerasimos, thanks for the execution. At the moment I just stumbled across the behavior with the "extended" extensions. What I noticed when adapting the nunjucks template (in NodeJS comparable to Jet in Go) and the API. I'm only using Greetings, Josef |
Yes, now you can register any extension (with more than one dots) - still single per one view engine. No need to implement multi for a single engine yet, if requested and needed it's easy to add it too, just give me an example engine and usage and I'll do it. |
Former-commit-id: db3f5014cbc5148cfbe542ec69c2ff330677363b
Hi @kataras,
I use the new ViewEngine for Jet, but there is a problem:
no view engine found for '.html'
I use:
In view of this the Problem is here:
iris/view/view.go
Lines 23 to 28 in eba6adb
Because it only takes over the last point of the expansion, but in Jet it can also be .jet, .jet.html and .html.jet, which do not match here.
Either it has to be adapted there, the jet engine should be adapted.
What are you thinking?
Regards, Josef
The text was updated successfully, but these errors were encountered: