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