bootstrap_for_pub 3.3.0 copy "bootstrap_for_pub: ^3.3.0" to clipboard
bootstrap_for_pub: ^3.3.0 copied to clipboard

discontinued
outdatedDart 1 only

Bootstrap's files, in a pub package. Contains Bootstrap 3.2. Included is a transformer to swap the CSS for a CDN version.

Bootstrap for Pub #

Just a pub package of Bootstrap, "The most popular front-end framework for developing responsive, mobile first projects on the web."

Nothing Dart specific in here, just the files bundled up for easier installation.

Installation #

See the install instructions.

Usage #

You can include the bootstrap stylesheets and script once you have added this package as a dependency to your application:

    <!-- include the stylesheets -->
    <link rel="stylesheet" href="packages/bootstrap_for_pub/css/bootstrap.css">
    <link rel="stylesheet" href="packages/bootstrap_for_pub/css/bootstrap-theme.css">
    
    <!-- include the javascript -->
    <script src="packages/bootstrap_for_pub/js/bootstrap.js"></script>

Note that the versions in the snippets above are the non-minified version. The transformer available in this package will automatically rewrite the URI to point to the minified versions when pub is invoked in release mode.

To activate the transformer, update your pubsepc.yaml

transformers:
- bootstrap_for_pub:
    url: //maxcdn.bootstrapcdn.com/bootstrap/{{version}}
    version: 3.2.0    

The transformer takes up to two optional parameters:

  • url: when specified the local base url (packages/bootstrap_for_pub/) will be replaced by the given url. This is useful to automatically switch to using a CDN for your production environment.
  • version: when specified, the sub-string "{{version}}" in the url parameter will be replaced with its value.

Learn more #

Visit the official Bootstrap homepage for docs and more.

See LICENSE.

0
likes
0
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

Bootstrap's files, in a pub package. Contains Bootstrap 3.2. Included is a transformer to swap the CSS for a CDN version.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

barback, html5lib

More

Packages that depend on bootstrap_for_pub