Create lexer and template

This commit is contained in:
Kyle Fuller
2014-10-24 14:25:53 +01:00
parent bf67ea3e5f
commit 652a4f9c88
7 changed files with 110 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ extension Array {
}
}
public func render(nodes:[Node], context:Context) -> (String?, Error?) {
public func renderNodes(nodes:[Node], context:Context) -> (String?, Error?) {
let result:(results:[String]?, error:Error?) = nodes.map {
return $0.render(context)
}