Closed svoop closed 1 year ago
@svoop Hmm, I wonder if that example would need to be wrapped inside of a post_read
hook, ala: https://edge.bridgetownrb.com/docs/plugins/external-apis#builder-lifecycle-and-data-files
Can you try that and let me know if it fixes the issue?
@jaredcwhite Indeed, wrapped in a post read hook, the example works, thanks for the hint! (Grmbl, I should read the entire guide page before jumping into the code.) Adding the wrapper in the example might still be a good idea.
@svoop good call, I've added that to the docs.
The edge example to add data from API calls appears to be broken.
In my site, I'm building a collection of aeronautical regions:
Stripped down, this essentially assigns:
In the
bridgetown console
, I'd expect this key to be present insite.data
, however, it's not:Apparently, either the builder example in the edge docs is out of date or something else is broken on the way to 1.2... or I'm misreading the docs. :wink:
Bridgetown Version:
bridgetown 1.2.0.beta4 "Bonny Slope"
Computing environment (please complete the following information):