Add example, analysis opts, etc.

This commit is contained in:
Tobe O 2019-03-23 10:07:40 -04:00
parent eb29750ca2
commit 1a5937229e
5 changed files with 17 additions and 4 deletions

View file

@ -0,0 +1,3 @@
analyzer:
strong-mode:
implicit-casts: false

View file

@ -0,0 +1,3 @@
import 'package:jael_web/jael_web.dart';
void main() {}

View file

@ -0,0 +1 @@
export 'src/dom_builder.dart';

View file

@ -1,9 +1,14 @@
abstract class DomBuilder<T> {
DomBuilderElement<T> open(String tagName);
DomBuilderElement<T> append(
String tagName, void Function(DomBuilderElement<T>) f);
void emitText(String value);
void text(String value);
}
abstract class DomBuilderElement<T> implements DomBuilder<T> {
abstract class DomBuilderElement<T> extends DomBuilder<T> {
void attr(String name, [String value]);
void attrs(Map<String, String> map);
T close();
}

View file

@ -10,4 +10,5 @@ dependencies:
source_gen: ^0.9.0
dev_dependencies:
build_runner: ^1.0.0
build_web_compilers: ^1.0.0
build_web_compilers: ^1.0.0
pedantic: ^1.0.0