An application that loads its sources via iframe.
$ node osjs generate:package --name=default/MyPackageName --type=iframe
Just follow your normal workflow.
main.js- Client script
metadata.json- Package metadata
Create a folder named
data/ and make a file called
index.html. This is what is loaded by default in
You can communicate between OS.js and your IFrame application using the browser APIs and some helper methods.
Building and installation
# Adds package to global manifest. You have to run this initially and when you change your metadata file $ node osjs build:manifest # Build package $ node osjs build:package --name=default/MyName
If you want to automatically rebuild your changes, run:
$ node osjs watch