byteclubfr / prez

Generate Reveal.js slideshows from a set of markdowns
228 stars 42 forks source link

How to add 3rd party reveal js plugins to prez? #37

Open draptik opened 6 years ago

draptik commented 6 years ago

I would like to add 3rd party RevealJs plugins to prez. Is this possible? What would be the best approach?

In RevealJs I would normally just include these plugins in index.html within the Reveal.initialize block:

<script>
    Reveal.initialize({
                         // ...
        dependencies: [
                               // ...
            { src: 'plugin/tagcloud/tagcloud.js', async: true },
            { src: 'plugin/badges/badges.js'},
                                // OTHER PLUGINS GO HERE
        ],
        badges: { /* SAMPLE PLUGIN CONFIG... */ }
    });
</script>

Does prez provide a similar way for including plugins on a per-project basis?