picosite 0.2.1
picosite: ^0.2.1 copied to clipboard
A minimal static site generator with http preview server
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate picositeUse it
The package has the following executables:
$ picosite
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add picositeWith Flutter:
$ flutter pub add picositeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
picosite: ^0.2.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:picosite/cli.dart';
import 'package:picosite/config.dart';
import 'package:picosite/content.dart';
import 'package:picosite/defaulttemplate.dart';
import 'package:picosite/previewserver.dart';
import 'package:picosite/version.dart';