PressDirectory class final

Discovers and caches an MDC content directory.

Constructors

PressDirectory(String path, {String mount = '/', MdcParser parser = const MdcParser(), bool includeDrafts = false})
Creates a file-system content collection.

Properties

hashCode → int
The hash code for this object.
no setterinherited
includeDrafts → bool
Whether draft pages appear in snapshots and locations.
final
mount → Uri
Public mount location.
final
parser → MdcParser
Parser configuration shared by discovered pages.
final
root → Directory
Absolute content root.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

locations() → Future<List<Uri>>
Returns every static page location.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
page(Iterable<String> slug) → Future<PressPage?>
Finds one page by path segments relative to mount.
snapshot() → Future<Press>
Reads a complete immutable snapshot.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited