BracePlaceholders class abstract final

{{key}} placeholders in a text that is not configuration: Markdown pages, templates of an app's own. Each is replaced by resolve's value of its key; one whose key has no value stays as it is, so a text that shows {{token}} of another tool keeps it. \{{ writes {{ as text.

${...} is left alone: it is the configuration's own placeholder, and documentation is full of examples of it.

BracePlaceholders.resolve(
  'spring_boot_dart: ^{{site.package-version}}',
  environment.getProperty,
); // 'spring_boot_dart: ^0.7.2'

Spring has no counterpart; it is Mustache's syntax for one value.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

resolve(String text, String? resolve(String key)) → String
text with each {{key}} whose key resolve knows replaced by its value.