eleventy-plugin-embed-tweet icon indicating copy to clipboard operation
eleventy-plugin-embed-tweet copied to clipboard

Liquid support

Open jalberto opened this issue 5 years ago • 1 comments

Will be great to have Liquid support as well as NJK

Thanks for your work!

jalberto avatar Jul 15 '20 14:07 jalberto

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!

KyleMit avatar Aug 19 '20 12:08 KyleMit