eleventy-plugin-embed-tweet
eleventy-plugin-embed-tweet copied to clipboard
Liquid support
Will be great to have Liquid support as well as NJK
Thanks for your work!
Seems totally reasonable. The lookups are using async/await, so we're bound to shortcode templating languages that have async support.
Should be available in:
We have to register each language individually, but shouldn't take too much work to add to the .eleventy.js file like this:
eleventyConfig.addNunjucksAsyncShortcode("tweet", async(tweetId) => {
return await twitter.getTweet(tweetId, options)
});
Thanks for the suggestion!