Publish jael
This commit is contained in:
parent
eabc1ba828
commit
b643cfc274
17 changed files with 31 additions and 31 deletions
|
@ -1,6 +1,5 @@
|
|||
# 4.0.0
|
||||
* Migrated to support Dart SDK 2.12.x NNBD
|
||||
* Renamed jael to jael3
|
||||
|
||||
# 3.0.0
|
||||
* Migrated to work with Dart SDK 2.12.x Non NNBD
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
[![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/jael/jael3/LICENSE)
|
||||
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael/LICENSE)
|
||||
|
||||
A simple server-side HTML templating engine for Dart.
|
||||
|
||||
|
@ -18,7 +18,7 @@ dependencies:
|
|||
```
|
||||
|
||||
# API
|
||||
The core `jael` package exports classes for parsing Jael templates,
|
||||
The core `jael3` package exports classes for parsing Jael templates,
|
||||
an AST library, and a `Renderer` class that generates HTML on-the-fly.
|
||||
|
||||
```dart
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'dart:async';
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
import 'package:args/args.dart';
|
||||
import 'package:jael/jael.dart';
|
||||
import 'package:jael3/jael3.dart';
|
||||
|
||||
var argParser = ArgParser()
|
||||
..addOption('line-length',
|
||||
|
@ -29,7 +29,7 @@ var argParser = ArgParser()
|
|||
help: 'Overwrite input files with formatted output.',
|
||||
negatable: false);
|
||||
|
||||
main(List<String> args) async {
|
||||
void main(List<String> args) async {
|
||||
try {
|
||||
var argResults = argParser.parse(args);
|
||||
if (argResults['help'] as bool) {
|
||||
|
@ -41,7 +41,7 @@ main(List<String> args) async {
|
|||
if (argResults.rest.isEmpty) {
|
||||
var text = await stdin.transform(utf8.decoder).join();
|
||||
var result =
|
||||
await format(argResults['stdin-name'] as String?, text, argResults);
|
||||
format(argResults['stdin-name'] as String?, text, argResults);
|
||||
if (result != null) print(result);
|
||||
} else {
|
||||
for (var arg in argResults.rest) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import 'dart:io';
|
||||
import 'package:charcode/charcode.dart';
|
||||
import 'package:code_buffer/code_buffer.dart';
|
||||
import 'package:jael/jael.dart' as jael;
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||
import 'package:jael3/jael3.dart' as jael;
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
|
||||
main() {
|
||||
void main() {
|
||||
while (true) {
|
||||
var buf = StringBuffer();
|
||||
int ch;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:source_span/source_span.dart';
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'ast_node.dart';
|
||||
import 'expression.dart';
|
||||
import 'identifier.dart';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:source_span/source_span.dart';
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'ast_node.dart';
|
||||
import 'token.dart';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:source_span/source_span.dart';
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'expression.dart';
|
||||
import 'token.dart';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'dart:mirrors';
|
||||
import 'package:source_span/source_span.dart';
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'expression.dart';
|
||||
import 'identifier.dart';
|
||||
import 'token.dart';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:charcode/charcode.dart';
|
||||
import 'package:source_span/source_span.dart';
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import '../ast/ast.dart';
|
||||
import 'expression.dart';
|
||||
import 'token.dart';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'dart:convert';
|
||||
import 'package:code_buffer/code_buffer.dart';
|
||||
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||
import 'package:collection/collection.dart' show IterableExtension;
|
||||
import 'package:source_span/source_span.dart';
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
//import 'package:source_span/source_span.dart';
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'ast/ast.dart';
|
||||
import 'text/parser.dart';
|
||||
import 'text/scanner.dart';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: jael3
|
||||
version: 4.0.0
|
||||
description: A simple server-side HTML templating engine for Dart. Comparable to Blade or Liquid.
|
||||
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael3
|
||||
homepage: https://github.com/dukefirehawk/angel/tree/angel3/packages/jael/jael
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
dependencies:
|
||||
|
@ -11,7 +11,8 @@ dependencies:
|
|||
angel3_symbol_table: ^2.0.0
|
||||
source_span: ^1.0.0
|
||||
string_scanner: ^1.0.0
|
||||
collection: ^1.15.0
|
||||
collection: ^1.15.0
|
||||
matcher: ^0.12.10
|
||||
dev_dependencies:
|
||||
pedantic: ^1.11.0
|
||||
test: ^1.17.4
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import 'dart:math';
|
||||
import 'package:code_buffer/code_buffer.dart';
|
||||
import 'package:jael/jael.dart' as jael;
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||
import 'package:jael3/jael3.dart' as jael;
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:jael/jael.dart';
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:jael3/jael3.dart';
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:code_buffer/code_buffer.dart';
|
||||
import 'package:jael/jael.dart' as jael;
|
||||
import 'package:symbol_table/symbol_table.dart';
|
||||
import 'package:angel3_code_buffer/angel3_code_buffer.dart';
|
||||
import 'package:jael3/jael3.dart' as jael;
|
||||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:matcher/matcher.dart';
|
||||
import 'package:jael/src/ast/token.dart';
|
||||
import 'package:jael3/src/ast/token.dart';
|
||||
|
||||
Matcher isToken(TokenType type, [String? text]) => _IsToken(type, text);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import 'package:jael/src/ast/token.dart';
|
||||
import 'package:jael/src/text/scanner.dart';
|
||||
import 'package:jael3/src/ast/token.dart';
|
||||
import 'package:jael3/src/text/scanner.dart';
|
||||
import 'package:test/test.dart';
|
||||
import 'common.dart';
|
||||
|
||||
|
|
Loading…
Reference in a new issue