toml 0.6.1 toml: ^0.6.1 copied to clipboard
Parser and encoder for TOML v0.4.0 (Tom's Obvious, Minimal Language) configuration files.
toml.dart Examples #
This directory contains examples for the usage of the toml.dart
package.
-
./custom_config_loader
contains an example for how to extend the configuration file loading mechanism oftoml.dart
by supplying your own instance of theConfigLoader
interface. -
./filesystem_config_loader
contains an example for how to load a configuration file in the Dart VM from the local filesystem. -
./flutter_example
contains a Flutter example for how to use thetoml.dart
library to decode a TOML document as an asset string. -
./http_config_loader
contains an example for how to load a configuration file in the browser via HTTP. -
./toml_encoder
contains an example for how to use theTomlEncoder
from thetoml.encoder
library to encode aMap
as a TOML document. -
./toml_parser
contains an example for how to use theTomlParser
from thetoml.decoder
library to decode a TOML document from a string. -
./toml_to_json
contains an example application for the conversion of TOML documents to JSON.