Updated melos
This commit is contained in:
parent
5f07290573
commit
d33faeacce
5 changed files with 5 additions and 21 deletions
|
@ -3,8 +3,5 @@ name: angel3
|
|||
packages:
|
||||
- packages/**
|
||||
|
||||
ignore:
|
||||
- "packages/auth_twitter"
|
||||
|
||||
#scripts:
|
||||
# analyze: melos exec -- "dart analyze ."
|
|
@ -22,7 +22,7 @@ dev_dependencies:
|
|||
async: ^2.6.1
|
||||
build_runner: ^2.1.2
|
||||
build_web_compilers: ^3.2.1
|
||||
test: ^1.17.5
|
||||
test: ^1.20.0
|
||||
lints: ^1.0.0
|
||||
dependency_overrides:
|
||||
angel3_container:
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1 +0,0 @@
|
|||
language: dart
|
|
@ -1,10 +1,9 @@
|
|||
# Angel3 HTML
|
||||
|
||||
[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_html)
|
||||
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_html?include_prereleases)
|
||||
[![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/html/LICENSE)
|
||||
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/html/LICENSE)
|
||||
|
||||
A plug-in that allows you to return `belatuk_html_builder` AST's from request handlers, and have them sent as HTML automatically.
|
||||
|
||||
|
@ -28,10 +27,7 @@ Node myDom = html(lang: 'en', c: [
|
|||
]);
|
||||
```
|
||||
|
||||
This plug-in means that you can now `return` these AST's, and Angel will automatically send them to
|
||||
clients. Ultimately, the implication is that you can use `belatuk_html_builder` as a substitute for a
|
||||
templating system within Dart. With [hot reloading](https://pub.dev/packages/angel3_hot), you won't
|
||||
even need to reload your server (as it should be).
|
||||
This plug-in means that you can now `return` these AST's, and Angel will automatically send them to clients. Ultimately, the implication is that you can use `belatuk_html_builder` as a substitute for a templating system within Dart. With [hot reloading](https://pub.dev/packages/angel3_hot), you won't even need to reload your server (as it should be).
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -72,9 +68,7 @@ configureServer(Angel app) async {
|
|||
}
|
||||
```
|
||||
|
||||
By default, `renderHtml` will ignore the client's `Accept` header. However, if you pass
|
||||
`enforceAcceptHeader` as `true`, then a `406 Not Acceptable` error will be thrown if the
|
||||
client doesn't accept `*/*` or `text/html`.
|
||||
By default, `renderHtml` will ignore the client's `Accept` header. However, if you pass `enforceAcceptHeader` as `true`, then a `406 Not Acceptable` error will be thrown if the client doesn't accept `*/*` or `text/html`.
|
||||
|
||||
```dart
|
||||
configureServer(Angel app) async {
|
||||
|
|
Loading…
Reference in a new issue