0.2.2 • Published 6 years ago
altizure-plugin-featured-projects v0.2.2
featured-projects
This npm module is for public distribution of the plugin.
usage
This plugin needs altizure
defined.
This plugin use the standard fetch API.
User should polyfill on their own if he needs support IE. e.g. whatwg-fetch
in js
This plugin has to be used together with the altizure
module. Make sure altizure
is in your dependencies (or devDependencies) list in package.json
file.
import {Sandbox} from 'altizure'
import {ProjectPool} from 'altizure-plugin-featured-projects'
let sandbox = new Sandbox('page-content')
let pool = new ProjectPool({ sandbox })
in html
Include altizure-sdk.min.js
before this plugin.
<head>
<script type="text/javascript" src="https://unpkg.com/altizure/release/altizure-sdk.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/altizure-plugin-featured-projects"></script>
</head>
<body>
<script>
let sandbox = new altizure.Sandbox('page-content')
let pool = new altizurePluginFeaturedProjects.ProjectPool({ sandbox })
</script>
</body>