fix ids again
This commit is contained in:
parent
4980e81d64
commit
9a4cfc0563
3 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@ import '../ast/ast.dart';
|
|||
|
||||
final RegExp _whitespace = new RegExp(r'[ \n\r\t]+');
|
||||
|
||||
final RegExp _id = new RegExp(r'(([A-Za-z][A-Za-z0-9]*-)*([A-Za-z][A-Za-z0-9]*))');
|
||||
final RegExp _id = new RegExp(r'(([A-Za-z][A-Za-z0-9_]*-)*([A-Za-z][A-Za-z0-9_]*))');
|
||||
final RegExp _string1 = new RegExp(
|
||||
r"'((\\(['\\/bfnrt]|(u[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])))|([^'\\]))*'");
|
||||
final RegExp _string2 = new RegExp(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: jael
|
||||
version: 1.0.0-beta+2
|
||||
version: 1.0.0-beta+3
|
||||
description: A simple server-side HTML templating engine for Dart.
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/jael/tree/master/jael
|
||||
|
|
|
@ -10,6 +10,7 @@ main() {
|
|||
<body>
|
||||
<h1>Hello</h1>
|
||||
<img ready="always" data-img-src=profile['avatar'] />
|
||||
<input name="csrf_token" type="hidden" value=csrf_token>
|
||||
</body>
|
||||
</html>
|
||||
''';
|
||||
|
@ -21,6 +22,7 @@ main() {
|
|||
try {
|
||||
document = jael.parseDocument(template, sourceUrl: 'test.jl');
|
||||
scope = new SymbolTable(values: {
|
||||
'csrf_token': 'foo',
|
||||
'profile': {
|
||||
'avatar': 'thosakwe.png',
|
||||
}
|
||||
|
@ -43,6 +45,7 @@ main() {
|
|||
Hello
|
||||
</h1>
|
||||
<img ready="always" data-img-src="thosakwe.png">
|
||||
<input name="csrf_token" type="hidden" value="foo">
|
||||
</body>
|
||||
</html>
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue