-
Notifications
You must be signed in to change notification settings - Fork 3
02 Including the framework in your project
Dan ford edited this page Dec 28, 2015
·
2 revisions
This framework is dependant on Ractive, so far it has been tested to work with 0.7.3
.
After installing both Ractive and lodestar-ractive to your project, include them both at the bottom of your file in the following order:
<script type="text/javascript" src="ractive.js"></script>
<script type="text/javascript" src="lodestar-ractive.js"></script>
After you have included these two files you can include your JavaScript beneath them to make use of the framework.
If you were using ES6 with a bundler such as Rollup you may know about jsnext:main. This framework is compliant with that and as such, as a different way of including the framework into your project you could do the following after installing it through npm:
import LodeRactive from 'lodestar-ractive';