mustache_recase 1.0.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 65

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 😃

Changelog

1.0.2

  • Generator+ public scaffolded structure reintroduced
  • Generator+ pubspec.yaml's constraint moved from dev dependencies

1.0.1

  • Generator+ public scaffolded structure removed
  • pubspec.yaml constraints updated

1.0.0

  • Stable and ready to use release

0.0.1

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  mustache_recase: "^1.0.2"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:mustache_recase/mustache_recase.dart';
  
Version Uploaded Documentation Archive
1.0.2 Jan 30, 2018 Go to the documentation of mustache_recase 1.0.2 Download mustache_recase 1.0.2 archive
1.0.1 Jan 29, 2018 Go to the documentation of mustache_recase 1.0.1 Download mustache_recase 1.0.1 archive
1.0.0 Oct 2, 2017 Go to the documentation of mustache_recase 1.0.0 Download mustache_recase 1.0.0 archive
0.0.1 Oct 2, 2017 Go to the documentation of mustache_recase 0.0.1 Download mustache_recase 0.0.1 archive

Analysis

We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
30 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
65
Learn more about scoring.

Platforms

Detected platforms: web, other

Primary library: package:mustache_recase/mustache_recase.dart with components: mirrors.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use mustache_recase.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0
generator_plus ^0.0.0 0.0.2+1
mustache >=1.0.0 <2.0.0 1.0.1
recase ^1.0.0 1.0.0+1
Transitive dependencies
analyzer 0.30.0+4 0.32.1
args 1.4.3
async 2.0.7
barback 0.15.2+16
build 0.12.6
charcode 1.1.1
cli_util 0.1.3
collection 1.14.10
console 2.2.4 3.0.0
contrast 0.1.1
convert 2.0.1
crypto 2.0.5
csslib 0.14.4
dart_config 0.5.0
dart_style 1.0.9+1 1.1.0
diff 0.1.1
front_end 0.1.0-alpha.4.1 0.1.1
github 3.0.2
glob 1.1.5
html 0.13.3+1
http 0.11.3+16
http_parser 3.1.2
isolate 1.1.0 2.0.1
kernel 0.3.0-alpha.1.1 0.3.1
legit 0.1.1
logging 0.11.3+1
markdown 0.11.4 2.0.0
matcher 0.12.3
meta 1.1.5
package_config 1.0.3
path 1.6.1
pen_api 0.1.2
petitparser 1.7.6
plugin 0.2.0+2
pool 1.3.5
pub_package_data 0.0.1
pub_semver 1.4.1
quiver 0.22.0 0.29.0+1
source_gen 0.7.5+1 0.8.2
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
unittest 0.11.7 0.12.4+1
utf 0.9.0+4
vector_math 1.4.7 2.0.7
watcher 0.9.7+8
when 0.2.0
which 0.1.3
xml 2.6.0 3.0.0
yaml 2.1.14
Dev dependencies
test ^0.12.0