Published Jinja

This commit is contained in:
thomashii 2021-06-26 18:34:23 +08:00
parent 44f519e9d1
commit 4cd63aa41a
5 changed files with 26 additions and 26 deletions

View file

@ -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

View file

@ -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}');
}
```
```

View file

@ -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 {

View file

@ -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.

View file

@ -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