-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
110 lines (91 loc) · 2.82 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html>
<head>
<title>can-importer - A Plugin for DoneJS</title>
<style>
* {box-sizing: border-box;}
body {
margin: 0px;
font-family: 'Helvetica Neue', Arial, sans-serif;
border-top: 2px solid #CB3036;
}
.container {
margin: 20px auto;
max-width: 800px;
padding: 20px;
}
.text-right {
text-align: right;
}
pre {
background-color: #eee;
border-radius: 2px;
color: #222;
margin-bottom: 1.5em;
overflow-x: scroll;
padding: 10px;
}
header h1 {
margin: 0px;
color: #111;
}
header h2 {
margin: 0px 1em 0px 0px;
color: #222;
}
.links {
float: right;
}
h3 {
margin: 5px 0px;
color: #555;
font-size: 1.1em;
}
p {
color: #333;
margin: 0 0 1em 0;
}
a {
color: #2c83a0;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
footer {
font-size: 0.9em;
opacity: 0.9;
}
</style>
</head>
<body>
<div class="container">
<header>
<div class='links'>
<p><a href="https://github.com//can-importer">View on GitHub</a></p>
<p class="text-right"><a href="https://travis-ci.org//can-importer"><img alt='Build Status' src='https://travis-ci.org//can-importer.svg?branch=master'/></a></p>
</div>
<h1>can-importer</h1>
<h2></h2>
</header>
<h2 id="usage">Usage</h2>
<h3 id="es6use">ES6 use</h3>
<p>With StealJS, you can import this module directly in a template that is autorendered:</p>
<pre><code class="js language-js">import plugin from 'can-importer';</code></pre>
<h3 id="commonjsuse">CommonJS use</h3>
<p>Use <code>require</code> to load <code>can-importer</code> and everything else
needed to create a template that uses <code>can-importer</code>:</p>
<pre><code class="js language-js">var plugin = require("can-importer");</code></pre>
<h3 id="standaloneuse">Standalone use</h3>
<p>Load the <code>global</code> version of the plugin:</p>
<pre><code class="html language-html"><script src='./node_modules/can-importer/dist/global/can-importer.js'></script></code></pre>
<p>This plugin is one of many. Check out all of the <a href="https://www.npmjs.com/search?q=keywords:donejs-plugin">DoneJS plugins on NPM</a>.</p>
<footer>
<p>This page was created with the
<a href='https://donejs.com/plugin.html'>DoneJS</a>
<a href='https://www.bitovi.com/blog/create-reusable-components-for-your-donejs-applications'>plugin generator</a>.
</p>
</footer>
</div>
</body>
</html>