OLD | NEW |
1 {{! Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 {{! Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 for details. All rights reserved. Use of this source code is governed by a | 2 for details. All rights reserved. Use of this source code is governed by a |
3 BSD-style license that can be found in the LICENSE file. }} | 3 BSD-style license that can be found in the LICENSE file. }} |
4 | 4 |
5 <h1> | 5 <h1> |
6 {{package.name}} | 6 {{package.name}} |
7 <span class="version">{{package.latest_version.version}}</span> | 7 <span class="version">{{package.latest_version.version}}</span> |
8 </h1> | 8 </h1> |
9 <div class="row-fluid"> | 9 <div class="row-fluid"> |
10 <div class="span8"> | 10 <div class="span8"> |
(...skipping 25 matching lines...) Expand all Loading... |
36 {{&changelog}} | 36 {{&changelog}} |
37 </div> | 37 </div> |
38 {{/changelog}} | 38 {{/changelog}} |
39 <div class="tab-pane {{^readme}}{{^changelog}}active{{/changelog}}{{/readm
e}}" id="installing"> | 39 <div class="tab-pane {{^readme}}{{^changelog}}active{{/changelog}}{{/readm
e}}" id="installing"> |
40 <h3>1. Depend on it</h3> | 40 <h3>1. Depend on it</h3> |
41 <p>Add this to your package's pubspec.yaml file:</p> | 41 <p>Add this to your package's pubspec.yaml file:</p> |
42 <pre> | 42 <pre> |
43 dependencies: | 43 dependencies: |
44 <strong>{{package.name}}: {{package.latest_version.example_version_constraint}
}</strong> | 44 <strong>{{package.name}}: {{package.latest_version.example_version_constraint}
}</strong> |
45 </pre> | 45 </pre> |
46 <p> | |
47 If your package is an <a href="https://www.dartlang.org/tools/pub/glos
sary.html#application-package"> | |
48 application package</a> you should use <strong><code>any</code> | |
49 </strong> as the <a href="https://www.dartlang.org/tools/pub/glossary.
html#version-constraint"> | |
50 version constraint</a>. | |
51 </p> | |
52 <h3>2. Install it</h3> | 46 <h3>2. Install it</h3> |
53 <p>You can install packages from the command line:</p> | 47 <p>You can install packages from the command line:</p> |
54 <pre> | 48 <pre> |
55 $ <strong>pub get</strong> | 49 $ <strong>pub get</strong> |
56 </pre> | 50 </pre> |
57 <p>Alternatively, your editor might support pub. Check the docs for your
editor to learn more.</p> | 51 <p>Alternatively, your editor might support pub. Check the docs for your
editor to learn more.</p> |
58 {{#package.latest_version.has_libraries}} | 52 {{#package.latest_version.has_libraries}} |
59 <h3>3. Import it</h3> | 53 <h3>3. Import it</h3> |
60 <p>Now in your Dart code, you can use: | 54 <p>Now in your Dart code, you can use: |
61 </p> | 55 </p> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 {{/package.documentation}} | 122 {{/package.documentation}} |
129 | 123 |
130 <h4>{{package.uploaders_title}}</h4> | 124 <h4>{{package.uploaders_title}}</h4> |
131 <p>{{& package.uploaders_html}}</p> | 125 <p>{{& package.uploaders_html}}</p> |
132 | 126 |
133 <h4>Share</h4> | 127 <h4>Share</h4> |
134 <div class="g-plusone" data-annotation="none"></div> | 128 <div class="g-plusone" data-annotation="none"></div> |
135 <a href="https://twitter.com/share" class="twitter-share-button" data-count=
"none" data-hashtags="dartlang">Tweet</a> | 129 <a href="https://twitter.com/share" class="twitter-share-button" data-count=
"none" data-hashtags="dartlang">Tweet</a> |
136 </div> | 130 </div> |
137 </div> | 131 </div> |
OLD | NEW |