Add example, analysis opts, etc.
This commit is contained in:
parent
eb29750ca2
commit
1a5937229e
5 changed files with 17 additions and 4 deletions
3
jael_web/analysis_options.yaml
Normal file
3
jael_web/analysis_options.yaml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
analyzer:
|
||||||
|
strong-mode:
|
||||||
|
implicit-casts: false
|
3
jael_web/example/main.dart
Normal file
3
jael_web/example/main.dart
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import 'package:jael_web/jael_web.dart';
|
||||||
|
|
||||||
|
void main() {}
|
1
jael_web/lib/jael_web.dart
Normal file
1
jael_web/lib/jael_web.dart
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export 'src/dom_builder.dart';
|
|
@ -1,9 +1,14 @@
|
||||||
abstract class DomBuilder<T> {
|
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();
|
T close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,3 +11,4 @@ dependencies:
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^1.0.0
|
build_runner: ^1.0.0
|
||||||
build_web_compilers: ^1.0.0
|
build_web_compilers: ^1.0.0
|
||||||
|
pedantic: ^1.0.0
|
Loading…
Reference in a new issue