diff --git a/packages/jinja/CHANGELOG.md b/packages/jinja/CHANGELOG.md index 5a6d4732..b70e1ebd 100644 --- a/packages/jinja/CHANGELOG.md +++ b/packages/jinja/CHANGELOG.md @@ -1,6 +1,9 @@ -# 2.0.0 +# Change Log + +## 2.0.0 + * Migrated to support Dart SDK 2.12.x NNBD -# 1.0.0 +## 1.0.0 -- Initial version, created by Stagehand +* Initial version, created by Stagehand diff --git a/packages/jinja/README.md b/packages/jinja/README.md index 19f3e6e0..2ac22bc9 100644 --- a/packages/jinja/README.md +++ b/packages/jinja/README.md @@ -1,9 +1,15 @@ -# jinja -Angel support for the Jinja2 templating engine, ported from Python to Dart. +# Jinja Template Renderer for Angel3 -[![Pub](https://img.shields.io/pub/v/angel_jinja.svg)](https://pub.dartlang.org/packages/angel_jinja) +[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_jinja) +[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) +[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) + +[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/jinja/LICENSE) + +A service that renders Jinja2 template into HTML view for [Angel3](https://github.com/dukefirehawk/angel) framework. Ported from Python to Dart. + +## Example -# Example ```dart import 'dart:io'; import 'package:angel_framework/angel_framework.dart'; @@ -42,4 +48,4 @@ void main() async { await http.startServer('127.0.0.1', 3000); print('Listening at ${http.uri}'); } -``` \ No newline at end of file +``` diff --git a/packages/jinja/example/main.dart b/packages/jinja/example/main.dart index 4e07a125..220e3fd5 100644 --- a/packages/jinja/example/main.dart +++ b/packages/jinja/example/main.dart @@ -1,7 +1,7 @@ import 'dart:io'; -import 'package:angel_framework/angel_framework.dart'; -import 'package:angel_framework/http.dart'; -import 'package:angel_jinja/angel_jinja.dart'; +import 'package:angel3_framework/angel3_framework.dart'; +import 'package:angel3_framework/http.dart'; +import 'package:angel3_jinja/angel3_jinja.dart'; import 'package:path/path.dart' as p; void main() async { diff --git a/packages/jinja/lib/angel_jinja.dart b/packages/jinja/lib/angel3_jinja.dart similarity index 96% rename from packages/jinja/lib/angel_jinja.dart rename to packages/jinja/lib/angel3_jinja.dart index 24adecad..245d01cb 100644 --- a/packages/jinja/lib/angel_jinja.dart +++ b/packages/jinja/lib/angel3_jinja.dart @@ -1,4 +1,4 @@ -import 'package:angel_framework/angel_framework.dart'; +import 'package:angel3_framework/angel3_framework.dart'; import 'package:jinja/jinja.dart'; /// Configures an Angel server to use Jinja2 to render templates. diff --git a/packages/jinja/pubspec.yaml b/packages/jinja/pubspec.yaml index 554e8f94..6cbaccab 100644 --- a/packages/jinja/pubspec.yaml +++ b/packages/jinja/pubspec.yaml @@ -1,23 +1,14 @@ -name: angel_jinja +name: angel3_jinja version: 2.0.0 -description: Angel support for the Jinja2 templating engine, ported from Python to Dart. -homepage: https://github.com/angel-dart/jinja -publish_to: none +description: A service that renders Jinja2 template into HTML view for Angel3. Ported from Python to Dart. +homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/jinja environment: sdk: '>=2.12.0 <3.0.0' dependencies: - angel_framework: - git: - url: https://github.com/dukefirehawk/angel.git - ref: sdk-2.12.x_nnbd - path: packages/framework + angel3_framework: ^4.0.0 jinja: ^0.3.1 dev_dependencies: - angel_test: - git: - url: https://github.com/dukefirehawk/angel.git - ref: sdk-2.12.x_nnbd - path: packages/test + angel3_test: ^4.0.0 path: ^1.8.0 pedantic: ^1.11.0 test: ^1.17.0