Skip to content

Example plugin generated using the canjs-plugin Yeoman generator.

Notifications You must be signed in to change notification settings

ccummings/canjs-hello-world

Repository files navigation

canjs-hello-world

Example plugin generated using the canjs-plugin Yeoman generator.

Download

Installation

This plugin requires CanJS and can be used with any AMD compliant loader like AMD or Steal. It can also be used stand alone without any loader.

Stand alone

Simply include CanJS and a DOM manipulation library, jQuery in this case, and the plugin in your HTML:

<!-- Dependencies. -->
<script src="path/to/jquery.js"></script>
<script src="path/to/canjs.jquery.js"></script>

<!-- canjs-hello-world -->
<script src="path/to/canjs-hello-world.js"></script>

AMD

define(['can', 'path/to/canjs-hello-world'], function(can){
	...
});

Steal

steal('can', 'path/to/canjs-hello-world', function(can){
	...
});

Credits

This plugin was built with generator-canjs-plugin.

License

MIT License

About

Example plugin generated using the canjs-plugin Yeoman generator.

Resources

Stars

Watchers

Forks

Packages

No packages published