Fixed minor bugs
This commit is contained in:
parent
1ab6e34449
commit
dc5fd569bc
3 changed files with 5 additions and 3 deletions
|
@ -5,6 +5,8 @@
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
<excludeFolder url="file://$MODULE_DIR$/.pub" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/example/packages" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/example/views/packages" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
<excludeFolder url="file://$MODULE_DIR$/packages" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'dart:mirrors';
|
||||||
import 'package:angel_framework/angel_framework.dart';
|
import 'package:angel_framework/angel_framework.dart';
|
||||||
import 'package:markdown/markdown.dart';
|
import 'package:markdown/markdown.dart';
|
||||||
|
|
||||||
final RegExp _braces = new RegExp(r'@?{{((\\})|([^}]))+}}');
|
final RegExp _braces = new RegExp(r'@?{{(((\\})|([^}]))+)}}');
|
||||||
|
|
||||||
/// Configures an [Angel] instance to render Markdown templates from the specified [viewsDirectory].
|
/// Configures an [Angel] instance to render Markdown templates from the specified [viewsDirectory].
|
||||||
///
|
///
|
||||||
|
@ -21,7 +21,7 @@ AngelConfigurer markdown(
|
||||||
FutureOr<String> template(String content, Map locals),
|
FutureOr<String> template(String content, Map locals),
|
||||||
}) {
|
}) {
|
||||||
extension ??= '.md';
|
extension ??= '.md';
|
||||||
extensionSet ?? ExtensionSet.gitHub;
|
extensionSet ??= ExtensionSet.gitHub;
|
||||||
|
|
||||||
return (Angel app) async {
|
return (Angel app) async {
|
||||||
app.viewGenerator = (String name, [Map locals]) async {
|
app.viewGenerator = (String name, [Map locals]) async {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_markdown
|
name: angel_markdown
|
||||||
version: 1.0.0
|
version: 1.0.0+1
|
||||||
description: Markdown view generator for Angel.
|
description: Markdown view generator for Angel.
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/markdown
|
homepage: https://github.com/angel-dart/markdown
|
||||||
|
|
Loading…
Reference in a new issue