Commit Graph

32 Commits

Author SHA1 Message Date
Kyle Fuller
f0abd34c32 [Template] Throw when initialising with non-existant file 2015-10-18 10:53:10 -07:00
Kyle Fuller
4d76fb4e60 [Template] Include tests for bundle/url initialiser 2015-10-18 09:41:16 -07:00
Kyle Fuller
9c335caeb6 Remove custom Result type and throw errors 2015-09-25 12:53:45 -07:00
Kyle Fuller
dcf2611ac2 Switch to Swift 2.0 2015-09-08 18:44:01 -07:00
Kyle Fuller
620154e721 Include template inheritence
Closes #15
2015-06-29 18:36:27 -07:00
Kyle Fuller
53d5a4f8c3 [Project] Use 2 spaces for indentation 2015-06-29 16:40:15 -07:00
Kyle Fuller
19a7abce4c Support Swift 1.2 2015-06-29 15:47:33 -07:00
Kyle Fuller
fa34c2a98e Add an include tag 2014-12-29 00:19:06 +00:00
Kyle Fuller
1989c20932 Add a Template Loader 2014-12-29 00:19:06 +00:00
Kyle Fuller
5a080f92cc Implement universal framework 2014-12-25 23:35:55 +00:00
Kyle Fuller
67eca80d61 Provide simple API for tags
Closes #6
2014-10-26 18:16:27 +00:00
Kyle Fuller
771236953f [Result] Remove labels from enum 2014-10-26 17:59:03 +00:00
Kyle Fuller
fb30915c6a [Node] Use Result enum 2014-10-26 17:43:20 +00:00
Kyle Fuller
51410d2ce9 [Template] Expose token parser 2014-10-26 17:29:57 +00:00
Kyle Fuller
d3b7e9ca0c Refactor render nodes to return a Result 2014-10-26 17:18:54 +00:00
Kyle Fuller
5a627999d5 Refactor more components to use enum 2014-10-26 17:04:04 +00:00
Kyle Fuller
6fd3fec141 Remove copyright headers
Closes #12
2014-10-26 16:02:05 +00:00
Marius Rackwitz
25b86dea93 Use enum instead of pair as result type for Template 2014-10-26 13:33:07 +00:00
Kyle Fuller
b35a30c9de [Node] Introduce formats to now node
Closes #8
2014-10-26 12:39:48 +00:00
Kyle Fuller
0d4615a7e5 [Node] Correctly handle errors 2014-10-26 12:21:39 +00:00
Kyle Fuller
925c663555 Allow node parsing to return an error
Closes #5
2014-10-26 12:11:40 +00:00
Kyle Fuller
7b42eb6bec Implement if and ifnot tags
Closes #3
2014-10-26 11:36:55 +00:00
Kyle Fuller
455845d80c Include tests for README 2014-10-25 15:13:30 +01:00
Kyle Fuller
46350dbd49 [Node] Add a standard for node 2014-10-25 15:12:46 +01:00
Kyle Fuller
d71e0ec012 [Lexer] Prevent the regex from being greedy 2014-10-25 15:12:20 +01:00
Kyle Fuller
da3b49d9ed Complete lexer implementation 2014-10-25 13:04:35 +01:00
Kyle Fuller
652a4f9c88 Create lexer and template 2014-10-25 13:04:35 +01:00
Kyle Fuller
bf67ea3e5f Build infrastructure for parsing block tokens 2014-10-25 13:04:35 +01:00
Kyle Fuller
5382a2b68f Add methods to render an array of nodes 2014-10-25 13:04:35 +01:00
Kyle Fuller
02a1af2f44 Add tokens and token parser 2014-10-25 13:04:35 +01:00
Kyle Fuller
5af59ecb15 Include node protocol along with text and variable nodes 2014-10-25 13:04:35 +01:00
Kyle Fuller
e34084f3f0 Initial project with Context and Variable. 2014-10-25 13:04:27 +01:00