Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 770 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 770 Bytes

Nue Editor

Interactively view and edit your Nue project.

Warning

This project is in its early stages of development.
It is likely to changes or get abandoned, if I don't feel like it anymore 🤷‍♂️

Preparation

To let the editor know of page navigation, add the following code to a global JavaScript file, that is available in development mode:

// message.js
function send() {
  parent.postMessage(location.toString(), '*')
}

addEventListener('load', send)
addEventListener('route', send)
addEventListener('popstate', send)

Relevant sources