Published Jinja
This commit is contained in:
parent
44f519e9d1
commit
4cd63aa41a
5 changed files with 26 additions and 26 deletions
|
@ -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
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
# jinja
|
||||
Angel support for the Jinja2 templating engine, ported from Python to Dart.
|
||||
# Jinja Template Renderer for Angel3
|
||||
|
||||
[](https://pub.dartlang.org/packages/angel_jinja)
|
||||
[](https://pub.dartlang.org/packages/angel3_jinja)
|
||||
[](https://dart.dev/null-safety)
|
||||
[](https://gitter.im/angel_dart/discussion)
|
||||
|
||||
[](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}');
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue