-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Help with EXIF data plugin #1009
Comments
You can't do async task in tag plugins because Swig render files synchronously. |
Got it- makes sense. Can you point me in the right direction of how I might On Sun, Jan 25, 2015 at 8:36 PM, Tommy Chen notifications@github.com
|
You can try to write a filter. But it's more difficult. I'm thinking whether to replace Swig with Nunjucks which supports async rendering. |
I see okay- yes, I'm all in favor of async support |
You can use async tag plugins since Hexo 3. https://github.com/hexojs/hexo/wiki/Breaking-Changes-in-Hexo-3.0#async-tag-plugins |
Hi, I'm in the process of writing a plugin to display EXIF information from a photo, for things like camera make, model, focal length, shutter speed, aperture, ISO, etc.
I'm using the gm-exif node plugin, which makes getting EXIF data easy.
I can extract the EXIF data successfully, but the plugin returns nothing, as it's presumably not waiting for the async
exif()
task. How can I fix this, so that the plugin waits for the EXIF data to be extracted?Sample plugin usage:
Plugin code:
The text was updated successfully, but these errors were encountered: