mustache_recase 2.0.3

Dart native js
Flutter Android iOS web

A mustache package extension for handling case conversions through e.g. {{#constant_case}} {{varName}} recased {{#constant_case}}

mustache_recase #

A library for extending the functionality of mustache package with recase

Usage #

import 'package:mustache/mustache.dart';
import 'package:mustache_recase/mustache_recase.dart' as mustache_recase;

void main(){
  Template template = new Template("{{#title_case}} {{hello}} {{/title_case}}");
  Map variables = {"hello": "hello-world"};
  variables.addAll(mustache_recase.cases);
  String output = template.renderString(variables);
  print(output); // Hello World
}

See (or interact with) the example and/or the test of the package if you have doubts

List of usable cases #

  • snake_case
  • dot.case
  • path/case
  • param-case
  • PascalCase
  • Header-Case
  • Title Case
  • camelCase
  • Sentence case
  • CONSTANT_CASE

misc

This package was made with Generator+ package in an effort to have it tested and, at the same time, extended in it's mustache templates related features. I'm glad it worked as expected 😃

0
likes
110
pub points
17%
popularity

A mustache package extension for handling case conversions through e.g. {{#constant_case}} {{varName}} recased {{#constant_case}}

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

Uploader

nicorodsevich@gmail.com

License

BSD (LICENSE)

Dependencies

mustache_template, recase

More

Packages that depend on mustache_recase