simple_template_engine 1.0.0 copy "simple_template_engine: ^1.0.0" to clipboard
simple_template_engine: ^1.0.0 copied to clipboard

A dynamic template rendering engine.

110/ 160
pub points
10
downloads

We analyzed this package 3 days ago, and awarded it 110 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 50 to 180 characters to describe the package, what it does, and its target use case.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

0 out of 2 API elements (0.0 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: simple_template_engine, simple_template_engine.executeTemplate.

Passed check 10/10 points: Package has an example

Partially passed report section
Platform support
10 / 20trigger folding of the section

Partially passed check 10/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

These issues are present but do not affect the score, because they may not originate in your package:

Package not compatible with platform Web

Because:

  • package:simple_template_engine/simple_template_engine.dart that imports:
  • package:dart_eval/stdlib/core.dart that imports:
  • package:dart_eval/src/eval/shared/stdlib/core/stack_trace.dart that imports:
  • package:dart_eval/src/eval/shared/stdlib/core/object.dart that imports:
  • package:dart_eval/dart_eval_bridge.dart that imports:
  • package:dart_eval/src/eval/bridge/declaration.dart that imports:
  • package:dart_eval/src/eval/compiler/util.dart that imports:
  • package:dart_eval/src/eval/runtime/runtime.dart that imports:
  • package:dart_eval/src/eval/shared/stdlib/math.dart that imports:
  • package:dart_eval/src/eval/shared/stdlib/math/point.dart that imports:
  • package:dart_eval/dart_eval.dart that imports:
  • package:dart_eval/src/eval/compiler/compiler.dart that imports:
  • package:dart_eval/src/eval/compiler/errors.dart that imports:
  • package:dart_eval/src/eval/compiler/context.dart that imports:
  • package:dart_eval/src/eval/compiler/variable.dart that imports:
  • package:dart_eval/src/eval/compiler/type.dart that imports:
  • package:dart_eval/src/eval/compiler/expression/method_invocation.dart that imports:
  • package:dart_eval/src/eval/compiler/expression/identifier.dart that imports:
  • package:dart_eval/src/eval/compiler/reference.dart that imports:
  • package:dart_eval/src/eval/compiler/expression/function.dart that imports:
  • package:dart_eval/src/eval/compiler/statement/statement.dart that imports:
  • package:dart_eval/src/eval/compiler/statement/block.dart that imports:
  • package:analyzer/dart/ast/ast.dart that imports:
  • package:analyzer/src/dart/ast/ast.dart that imports:
  • package:analyzer/src/generated/utilities_dart.dart that imports:
  • package:analyzer/src/dart/element/element.dart that imports:
  • package:analyzer/src/summary2/reference.dart that imports:
  • package:analyzer/dart/element/element.dart that imports:
  • package:analyzer/src/generated/engine.dart that imports:
  • package:analyzer/error/listener.dart that imports:
  • package:analyzer/error/error.dart that imports:
  • package:analyzer/src/error/error_code_values.g.dart that imports:
  • package:analyzer/src/generated/parser.dart that imports:
  • package:analyzer/src/fasta/ast_builder.dart that imports:
  • package:analyzer/src/dart/ast/extensions.dart that imports:
  • package:analyzer/dart/element/type.dart that imports:
  • package:analyzer/src/dart/element/type.dart that imports:
  • package:analyzer/src/dart/element/type_system.dart that imports:
  • package:analyzer/src/dart/resolver/flow_analysis_visitor.dart that imports:
  • package:analyzer/src/dart/element/type_schema.dart that imports:
  • package:analyzer/src/dart/element/type_visitor.dart that imports:
  • package:analyzer/src/summary2/named_type_builder.dart that imports:
  • package:analyzer/src/summary2/link.dart that imports:
  • package:analyzer/src/summary2/types_builder.dart that imports:
  • package:analyzer/src/dart/element/member.dart that imports:
  • package:analyzer/dart/analysis/session.dart that imports:
  • package:analyzer/file_system/file_system.dart that imports:
  • package:analyzer/src/file_system/file_system.dart that imports:
  • package:analyzer/src/util/uri.dart that imports:
  • package:analyzer/src/summary/package_bundle_reader.dart that imports:
  • package:analyzer/src/generated/source.dart that imports:
  • package:analyzer/src/context/source.dart that imports:
  • package:analyzer/src/workspace/pub.dart that imports:
  • package:analyzer/src/workspace/workspace.dart that imports:
  • package:analyzer/src/workspace/blaze.dart that imports:
  • package:analyzer/src/workspace/blaze_watcher.dart that imports:
  • package:watcher/watcher.dart that imports:
  • package:watcher/src/file_watcher/polling.dart that imports:
  • package:watcher/src/polling.dart that imports:
  • dart:io

WASM compatibility:

Package not compatible with runtime wasm

Because:

  • package:simple_template_engine/simple_template_engine.dart that imports:
  • package:dart_eval/stdlib/core.dart that imports:
  • package:dart_eval/src/eval/shared/stdlib/core/stack_trace.dart that imports:
  • package:dart_eval/src/eval/shared/stdlib/core/object.dart that imports:
  • package:dart_eval/dart_eval_bridge.dart that imports:
  • package:dart_eval/src/eval/bridge/declaration.dart that imports:
  • package:dart_eval/src/eval/compiler/util.dart that imports:
  • package:dart_eval/src/eval/runtime/runtime.dart that imports:
  • package:dart_eval/src/eval/shared/stdlib/math.dart that imports:
  • package:dart_eval/src/eval/shared/stdlib/math/point.dart that imports:
  • package:dart_eval/dart_eval.dart that imports:
  • package:dart_eval/src/eval/compiler/compiler.dart that imports:
  • package:dart_eval/src/eval/compiler/errors.dart that imports:
  • package:dart_eval/src/eval/compiler/context.dart that imports:
  • package:dart_eval/src/eval/compiler/variable.dart that imports:
  • package:dart_eval/src/eval/compiler/type.dart that imports:
  • package:dart_eval/src/eval/compiler/expression/method_invocation.dart that imports:
  • package:dart_eval/src/eval/compiler/expression/identifier.dart that imports:
  • package:dart_eval/src/eval/compiler/reference.dart that imports:
  • package:dart_eval/src/eval/compiler/expression/function.dart that imports:
  • package:dart_eval/src/eval/compiler/statement/statement.dart that imports:
  • package:dart_eval/src/eval/compiler/statement/block.dart that imports:
  • package:analyzer/dart/ast/ast.dart that imports:
  • package:analyzer/src/dart/ast/ast.dart that imports:
  • package:analyzer/src/generated/utilities_dart.dart that imports:
  • package:analyzer/src/dart/element/element.dart that imports:
  • package:analyzer/src/summary2/reference.dart that imports:
  • package:analyzer/dart/element/element.dart that imports:
  • package:analyzer/src/generated/engine.dart that imports:
  • package:analyzer/error/listener.dart that imports:
  • package:analyzer/error/error.dart that imports:
  • package:analyzer/src/error/error_code_values.g.dart that imports:
  • package:analyzer/src/generated/parser.dart that imports:
  • package:analyzer/src/fasta/ast_builder.dart that imports:
  • package:analyzer/src/dart/ast/extensions.dart that imports:
  • package:analyzer/dart/element/type.dart that imports:
  • package:analyzer/src/dart/element/type.dart that imports:
  • package:analyzer/src/dart/element/type_system.dart that imports:
  • package:analyzer/src/dart/resolver/flow_analysis_visitor.dart that imports:
  • package:analyzer/src/dart/element/type_schema.dart that imports:
  • package:analyzer/src/dart/element/type_visitor.dart that imports:
  • package:analyzer/src/summary2/named_type_builder.dart that imports:
  • package:analyzer/src/summary2/link.dart that imports:
  • package:analyzer/src/summary2/types_builder.dart that imports:
  • package:analyzer/src/dart/element/member.dart that imports:
  • package:analyzer/dart/analysis/session.dart that imports:
  • package:analyzer/file_system/file_system.dart that imports:
  • package:analyzer/src/file_system/file_system.dart that imports:
  • package:analyzer/src/util/uri.dart that imports:
  • package:analyzer/src/summary/package_bundle_reader.dart that imports:
  • package:analyzer/src/generated/source.dart that imports:
  • package:analyzer/src/context/source.dart that imports:
  • package:analyzer/src/workspace/pub.dart that imports:
  • package:analyzer/src/workspace/workspace.dart that imports:
  • package:analyzer/src/workspace/blaze.dart that imports:
  • package:analyzer/src/workspace/blaze_watcher.dart that imports:
  • package:watcher/watcher.dart that imports:
  • package:watcher/src/file_watcher/polling.dart that imports:
  • package:watcher/src/polling.dart that imports:
  • dart:io

Note: This package supports Web but is not WASM-compatible, resulting in a partial score. See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 8 issues. Showing the first 2:

INFO: Missing type annotation.

lib/simple_template_engine.dart:21:3

   ╷
21 │   _call(Invocation invocation) {
   │   ^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/simple_template_engine.dart

INFO: Missing type annotation.

lib/simple_template_engine.dart:42:3

   ╷
42 │   _interpretTemplate(String template, Map<String, dynamic> arguments) {
   │   ^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/simple_template_engine.dart

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
dart_eval ^0.7.9 0.7.10 0.8.4
Transitive dependencies
Package Constraint Compatible Latest Notes
_fe_analyzer_shared - 67.0.0 97.0.0
analyzer - 6.4.1 11.0.0
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
change_case - 2.2.0 2.2.0
checked_yaml - 2.0.4 2.0.4
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.7 3.0.7
dart_style - 2.3.6 3.1.7
directed_graph - 0.4.5 0.5.5
exception_templates - 0.3.2 0.3.2
file - 7.0.1 7.0.1
glob - 2.1.3 2.1.3
json_annotation - 4.11.0 4.11.0
lazy_memo - 0.2.5 0.2.5
meta - 1.18.1 1.18.1
package_config - 2.2.0 2.2.0
path - 1.9.1 1.9.1
pub_semver - 2.2.0 2.2.0
pubspec_parse - 1.5.0 1.5.0
quote_buffer - 0.2.7 0.2.7
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
watcher - 1.2.1 1.2.1
yaml - 3.1.3 3.1.3

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.7.9` on dart_eval does not support the stable version `0.8.0`.

Try running dart pub upgrade --major-versions dart_eval to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.10, Dart 3.11.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
110
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A dynamic template rendering engine.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dart_eval

More

Packages that depend on simple_template_engine