-
Notifications
You must be signed in to change notification settings - Fork 13
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
routes won't return Promise<Tink.template.Html> as it used to.. #118
Comments
what haxe version? |
hello kevin . |
I reckon this is about transitivity. |
is it where @:transition should be placed ? because it's causing compiler to not compile and stays forever at "building" status . I hate when it does this... |
it is for the |
ah ! oh !
I've done this ... but no change ... I don't get what @:transitive does ... so I'm completely lost here :) |
Anyway, if this problem is particular for tink_web, I suggest you use the @:get("/")
@:html(_ -> Home.render())
public function index(){
return Promise.NOISE;
} |
ok nice to know. It doesn't work in my case cause i'm using static extensions ( like : Home.render().withLayout().addAction(Command1).render() ) but i'll go without.
thx for your efforts :) . |
I think this is a bug because Noise will produce empty http response but I think it should respect the html request. |
Code pointer for contributors: tink_web/src/tink/web/macros/Routing.hx Lines 379 to 390 in 62a26b9
|
compiles with error.
tink.core.Promise<tink.template.Html> should be tink.io.RealSource
workaround :
but it shouldn't behave like this huh ?
The text was updated successfully, but these errors were encountered: