Kyle Fuller
|
9b26b7d71a
|
[Context] Convenience push with block function
|
2015-10-26 08:26:16 -07:00 |
|
Olivier Halligon
|
ba65ab5fbe
|
Fix IfNode when using Array of arbitrary types (which made the cast to [AnyObject] fail)
|
2015-10-26 14:26:41 +01:00 |
|
Kyle Fuller
|
8ac6e26876
|
Allow template filters to throw errors
|
2015-10-24 14:41:37 -07:00 |
|
Kyle Fuller
|
033ae61e42
|
Restore code style
|
2015-10-24 14:26:32 -07:00 |
|
Kyle Fuller
|
1ea58b70f3
|
Error for unknown blocks
|
2015-10-24 14:24:34 -07:00 |
|
Kyle Fuller
|
5883775f37
|
[Extends] Make sure we don't leave endblock behind
|
2015-10-24 14:24:06 -07:00 |
|
Kyle Fuller
|
d1891038f8
|
Merge pull request #33 from AliSoftware/guards
Adding Guards 👮
|
2015-10-24 13:28:47 -07:00 |
|
Kyle Fuller
|
6464b3170a
|
Improve support for native Swift types
|
2015-10-22 11:42:50 -07:00 |
|
Kyle Fuller
|
16da9ac034
|
Introduce variable filters
|
2015-10-22 09:47:45 -07:00 |
|
Kyle Fuller
|
7d5d226017
|
Include missing import to Foundation
|
2015-10-21 21:59:40 -07:00 |
|
Olivier Halligon
|
05dc420808
|
Add more safeguards 🚓🛂
|
2015-10-18 22:30:33 +02:00 |
|
Olivier Halligon
|
f4ed872a45
|
guard all the things! 👮
|
2015-10-18 22:30:25 +02:00 |
|
Kyle Fuller
|
f0abd34c32
|
[Template] Throw when initialising with non-existant file
|
2015-10-18 10:53:10 -07:00 |
|
Olivier Halligon
|
20cc95fb87
|
Made Token's components & contents functions public so we can use it to implement custom tags with registerTag()
|
2015-10-18 15:48:03 +02:00 |
|
Kyle Fuller
|
1136ca8fca
|
[Template] Set default value for bundle initialiser
|
2015-10-02 12:20:42 -07:00 |
|
Andy Choi
|
b03ec50a42
|
Allow Template.render() to be called multiple times
Allow Template.render() to be called multiple times, for the use case where a single template is rendered against multiple Contexts.
|
2015-09-30 20:56:54 -07:00 |
|
chunkerchunker
|
a297b4ec42
|
bugfix for loading Template from URL
NSURL.absoluteString includes "file://", which Path() doesn't expect.
|
2015-09-29 16:54:07 -07:00 |
|
Kyle Fuller
|
9c335caeb6
|
Remove custom Result type and throw errors
|
2015-09-25 12:53:45 -07:00 |
|
Kyle Fuller
|
25f5583542
|
[Template] Initialisers to throw on failure
|
2015-09-25 11:17:04 -07:00 |
|
Kyle Fuller
|
878c5cfde8
|
Use modern Swift 2.0
|
2015-09-25 10:40:58 -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
|
5d61043f8c
|
Add architecture document and docs
|
2014-11-30 00:04:37 +00:00 |
|
Samuel E. Giddins
|
c70510b3a5
|
[Stencil.h] Allow using stencil from ObjC on iOS
|
2014-11-17 15:30:20 -08: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
|
d8e9d46310
|
[TokenParser] Add method to register tag
|
2014-10-26 17:22:02 +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
|
0b1ce61647
|
Refactor token parser to return enum
|
2014-10-26 16:14:56 +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 |
|
Marius Rackwitz
|
7b89c32295
|
Reduced code-duplication
|
2014-10-26 13:33:07 +00:00 |
|
Marius Rackwitz
|
1bd2b21a13
|
Make use of failable initializers
|
2014-10-26 13:33:07 +00:00 |
|
Marius Rackwitz
|
804bc658b2
|
Changes for Xcode 6.1 GM
|
2014-10-26 13:12:30 +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
|
758bf352c1
|
Support loading a template from disk
Closes #4
|
2014-10-25 15:48:54 +01:00 |
|
Kyle Fuller
|
98771558ca
|
[Variable] Match .count on arrays
|
2014-10-25 15:13:10 +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
|
57ae44d167
|
Fix a bug in lexer
|
2014-10-25 13:29:00 +01:00 |
|