We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given:
interface Images { @:get('/$filename') function ofFilename(filename:String):RealSource; }
For example, on client side we may want to do something like this:
<img src=${remote.images.ofFilename('foo.jpg').asUrl()}/>
in that case we just want the URL but not actually fetch it (because the img tag will).
img
or on server side we may want to perform redirection:
interface Redirected { @:get('/$filename') function ofFilename(filename:String):Url { return new Image().ofFilename(filename).asUrl(BASE_URL); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given:
For example, on client side we may want to do something like this:
in that case we just want the URL but not actually fetch it (because the
img
tag will).or on server side we may want to perform redirection:
The text was updated successfully, but these errors were encountered: