Bump Angel version
This commit is contained in:
parent
c3e71b4082
commit
876bbd8293
4 changed files with 10 additions and 4 deletions
|
@ -1,2 +1,6 @@
|
|||
# 1.0.2
|
||||
* Update for DSX support.
|
||||
* Clear the buffer on errors.
|
||||
|
||||
# 1.0.1
|
||||
* Use `Renderer.errorDocument`.
|
|
@ -17,6 +17,7 @@ AngelConfigurer jael(Directory viewsDirectory,
|
|||
bool strictResolution: false,
|
||||
bool cacheViews: false,
|
||||
Iterable<Patcher> patch,
|
||||
bool asDSX: false,
|
||||
CodeBuffer createBuffer()}) {
|
||||
var cache = <String, Document>{};
|
||||
fileExtension ??= '.jl';
|
||||
|
@ -32,8 +33,8 @@ AngelConfigurer jael(Directory viewsDirectory,
|
|||
} else {
|
||||
var file = viewsDirectory.childFile(name + fileExtension);
|
||||
var contents = await file.readAsString();
|
||||
var doc =
|
||||
parseDocument(contents, sourceUrl: file.uri, onError: errors.add);
|
||||
var doc = parseDocument(contents,
|
||||
sourceUrl: file.uri, asDSX: asDSX == true, onError: errors.add);
|
||||
processed = doc;
|
||||
|
||||
try {
|
||||
|
@ -61,7 +62,7 @@ AngelConfigurer jael(Directory viewsDirectory,
|
|||
}
|
||||
}
|
||||
|
||||
Renderer.errorDocument(errors, buf);
|
||||
Renderer.errorDocument(errors, buf..clear());
|
||||
return buf.toString();
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: angel_jael
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
description: Angel support for the Jael templating engine.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/jael/tree/master/jael
|
||||
|
|
1
jael.iml
1
jael.iml
|
@ -3,6 +3,7 @@
|
|||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$/angel_jael">
|
||||
<excludeFolder url="file://$MODULE_DIR$/angel_jael/.dart_tool" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/angel_jael/.pub" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/angel_jael/build" />
|
||||
</content>
|
||||
|
|
Loading…
Reference in a new issue