template_string 0.6.0 icon indicating copy to clipboard operation
template_string: ^0.6.0 copied to clipboard

A simple command-line application.

template_string #

Simple string formatting from inline templates.

Usage #

 print(
    'Hello {{first_name[lowercase]}}! Your score is {{score:Int[percentPattern]}} as of {{date:DateTime[yMMMM]}}.'
        .insertTemplateValues(
      {
        'first_name': 'John',
        'score': 67.8,
        'date': DateTime.now(),
      },
      Locale.parse('en'),
    ),
  );
// Hello John! Your score is 6,780% as of March 2021.
2
likes
120
pub points
74%
popularity

Publisher

unverified uploader

A simple command-line application.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

intl

More

Packages that depend on template_string