Skip to content

Create blank pages on predefined routes and load external js on those pages.

License

Notifications You must be signed in to change notification settings

zhangted/discourse-blank-pages

Repository files navigation

Discourse Blank Pages Plugin

Create blank pages on predefined routes and load external js on those pages.

Plugin Admin Settings

  • Routes
    • Define your list of valid routes (prefixed with '/page')
  • External JS script link
    • Load a js script on valid routes

Info

  • Great for loading Preact (4kb) + frontend scripts + custom router scripts into some Discourse pages, to render custom pages / components.
  • Valid routes will start with a div on the page with the route as id

Troubleshoot

  • Policy issue when loading script => Add cdn to discourse admin setting "content security policy script src"

About

Create blank pages on predefined routes and load external js on those pages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published