reveal.js icon indicating copy to clipboard operation
reveal.js copied to clipboard

Question: content from headless cms

Open OperationalFallacy opened this issue 3 years ago • 2 comments

👋 I'm prototyping how to build presentations that pull content from headless CMS. Is there any API in reveal.js that can help with this? Something similar to API in slides.com, https://slides.com/developers#define-api - which solves the problem theoretically since I can convert responses from headless cms to deck json. I wanted to try a simple version and run everything locally since I want to experiment with content transformations. Cheers! Roman

OperationalFallacy avatar Aug 18 '21 17:08 OperationalFallacy

I figured it out: there is no APIs unfortunately However rendering slides is pretty easy with the content pulled from any CMS.

In a react component

return(
  {slides.map(slide) => (
    <div className={style.container}>
       <Presentation slides={slides} />
    </div>
  ))}
);

OperationalFallacy avatar Jan 12 '22 18:01 OperationalFallacy