Commit Graph
100 Commits
Author SHA1 Message Date
Kyle Fuller 872784f9b3 chore(podspec): Update homepage 2016-11-29 12:24:31 +00:00
Kyle Fuller 1a01ec592e chore(README): Update documentation links 2016-11-28 19:48:43 +00:00
Kyle Fuller f0591408be refactor(filter): Filters should be private, we only expose resolvable 2016-11-28 19:24:27 +00:00
Kyle Fuller b7e200a8a0 feat(for): Support filters
Closes #70
2016-11-28 19:24:27 +00:00
Kyle Fuller b1da85b140 feat(default filter): Support multiple defaults 2016-11-28 19:24:27 +00:00
Kyle Fuller 679344f53b refactor(if): Deprecate ifnot tag 2016-11-28 19:24:27 +00:00
Kyle Fuller ada4e81082 fix(changelog): Public APIs 2016-11-28 19:24:27 +00:00
Kyle Fuller c99a40c5d9 refactor(loader): Rename TemplateLoader to Loader 2016-11-28 19:24:27 +00:00
Kyle Fuller c59b263446 feat(if): Support >, >=, < and <= operators
Closes #52
2016-11-28 19:24:26 +00:00
Kyle Fuller ab6f1a032d feat(if): Support inequality operator 2016-11-28 19:24:26 +00:00
Kyle Fuller e989317929 feat(if): Support equatable operator 2016-11-28 19:24:26 +00:00
Kyle Fuller 111306fb60 fix(if): Empty strings should be falsy 2016-11-28 19:24:26 +00:00
Kyle Fuller 3eb2657a62 fix(if): Support resolving all number types 0 or below as false 2016-11-28 19:24:26 +00:00
Kyle Fuller 6ad609e562 refactor(if): Move expressions to separate file 2016-11-28 19:24:26 +00:00
Kyle Fuller 38d7ec87f6 feat(variable): Allow Swift type introspection 2016-11-28 19:24:26 +00:00
Kyle Fuller 9af9cf4005 fix(context): Allow removing a value at a pushed state 2016-11-28 19:24:25 +00:00
Kyle Fuller 1975cfd627 feat(context): Add flatten method 2016-11-28 19:24:25 +00:00
Kyle Fuller 429290e0b7 refactor: TemplateLoader to protocol, follow Swift API guidelines 2016-11-28 19:24:17 +00:00
Kyle Fuller 5ca1b78854 chore: Switch to Swift 3.0.1 2016-11-28 03:37:20 +00:00
Kyle Fuller a2673bd66b chore: Update README to point to documentation 2016-11-28 03:15:56 +00:00
Kyle Fuller 9b6ee14aa3 feat(docs): Add custom tags and filters to documentation 2016-11-28 03:11:38 +00:00
Kyle Fuller 3b5e8f2468 chore: Remove debug print during test 2016-11-28 03:00:51 +00:00
Kyle Fuller e84f8a41d4 feat(if): Support and, or and not during if expressions
Closes #73
2016-11-28 02:56:04 +00:00
Kyle Fuller 2324808dca fix(if): Treat below 0 numbers as negative 2016-11-27 20:11:51 +00:00
Kyle Fuller 9fdbbc99e9 feat(filters): Add a join filter 2016-11-27 19:47:50 +00:00
Kyle Fuller dfd57e9571 feat: Add a default filter 2016-11-27 18:27:30 +00:00
Kyle Fuller 3293d8a526 feat: Add documentation 2016-11-27 18:03:39 +00:00
Kyle Fuller 393dc88a10 fix(extends): Support multiple extends
Fixes #60
2016-11-27 04:22:37 +00:00
Kyle Fuller a014fecd23 fix(filters): Smartly split arguments
Ensure that `"value"|filter:"arg , with comma"` works
2016-11-27 02:46:43 +00:00
Kyle Fuller a13401b046 chore: Lock down APIs 2016-11-27 02:20:46 +00:00
Kyle Fuller 60b378d482 feat(filters): Allow filters with arguments 2016-11-27 01:59:57 +00:00
Kyle Fuller 1e3afc0dd5 fix(variable): Prevent crash on unknown index in array 2016-10-13 13:11:02 +01:00
Kyle Fuller 72f3cb579a Switch to Swift 3.0 2016-10-13 13:04:49 +01:00
Kyle Fuller 65c3052aee Release 0.6.0 2016-09-13 19:15:52 +01:00
Kyle Fuller 7bbd4f2817 [Pod] Add support for tvos 2016-09-13 19:12:47 +01:00
Kyle Fuller 7416e6150d [Travis CI] Test on Linux 2016-09-13 19:12:47 +01:00
Kyle Fuller feff3b18b1 Add support for Swift 3.0 2016-09-13 19:12:47 +01:00
Kyle Fuller f393efbd0b Merge pull request #68 from zhangbozhb/master
bug fix:fix memory leak when parse template
2016-09-04 16:17:28 +02:00
Kyle Fuller df650c6b20 [Travis CI] Test on Swift 2.2 2016-09-04 09:26:43 +02:00
Kyle Fuller 80427a51e6 Merge pull request #67 from ikesyo/ifnode-evaluate-bool-value
[IfNode] Accept and evaluate a `Bool` value as a valid expression
2016-07-19 19:15:26 +01:00
Kyle Fuller 4ffc888ba4 Release 0.6.0-beta.1 2016-04-04 22:39:19 +02:00
Kyle Fuller 3c21975b97 Merge pull request #61 from GregKaleka/patch-1
Minor grammatical fixes to README.md
2016-03-16 13:53:25 +00:00
Kyle Fuller 05b71736aa Merge pull request #59 from shnhrrsn/namespace-fix
Added namespace to Context
2016-03-09 23:41:43 +00:00
Kyle Fuller 67d4c52535 [Context] Ensure pop happens when an error is thrown 2016-03-05 00:37:12 +00:00
Kyle Fuller 48026cde2c Split tags into separate files 2016-03-05 00:15:18 +00:00
Kyle Fuller dc4b965aaa Merge pull request #55 from dtrenz/dtrenz-readme-usage
Added `try` to throwing expressions in example.
2016-02-27 15:46:05 -05:00
Kyle Fuller 9b7e6ba7ed Release 0.5.3 2016-02-26 16:37:08 -05:00
Kyle Fuller bf0989d329 Merge pull request #54 from kylef/kylef/linux
Make tests pass and run on Linux
2016-02-26 16:34:11 -05:00
Kyle Fuller affd56ec99 [travis] Test on Linux and OS X 2016-02-26 16:18:00 -05:00
Kyle Fuller 070a82cb2d Change how we normalize values to be linux compatible
Closes #51
2016-02-26 16:16:36 -05:00
Kyle Fuller 3ec009381d Disable the now tag on Linux
NSDate is unavailable
2016-02-11 19:34:46 -05:00
Kyle Fuller 6deb93ac19 Disable NSObject based tests on Linux 2016-02-11 19:25:26 -05:00
Kyle Fuller b4ba12bbde Use spectre-build for tests 2016-02-08 13:47:52 +00:00
Kyle Fuller 19d712b4a4 Release 0.5.2 2016-01-30 14:57:26 +01:00
Kyle Fuller 201b8e263c Fix failing for node tests
These we're broken in commit 0783506
2015-12-14 16:03:48 +00:00
Kyle Fuller 03928721c4 Move away from deprecated curry syntax 2015-12-14 09:04:18 -05:00
Kyle Fuller 07835063ed Fix an ambiguous array literal warning 2015-12-14 09:04:01 -05:00
Kyle Fuller 3c13d81b21 Whoops, Tests not Specs 2015-12-09 19:20:05 +00:00
Kyle Fuller 1668830d9b [for] Provide forloop context, first, last and counter 2015-12-09 19:18:16 +00:00
Kyle Fuller 14195b3199 Include missing specs 2015-12-09 19:18:08 +00:00
Kyle Fuller ae75ea5911 [podspec] Correct PathKit dependency 2015-12-09 19:16:47 +00:00
Kyle Fuller 9c9ebbe559 Release 0.5.1 2015-12-08 18:08:44 +00:00
Kyle Fuller 5cdf1d326b Merge pull request #47 from neonichu/fix-manifest
Needs to depend on PathKit 0.6.x
2015-12-08 16:32:39 +00:00
Kyle Fuller 0ccd8809e0 Merge pull request #46 from neonichu/linux-support
Support for Linux
2015-12-08 15:59:36 +00:00
Kyle Fuller b792cd09b9 Merge pull request #45 from neonichu/spm-support
Support for SPM
2015-12-08 12:28:55 +00:00
Kyle Fuller 0bfd4134f9 Merge pull request #43 from njdehoog/filter_whitespace
Allow whitespace in filter expression
2015-11-24 14:33:17 +00:00
Kyle Fuller a1a268d5ac Merge pull request #41 from kylef/scanner
Replace NSRegularExpression with string scanning
2015-11-23 11:02:54 +00:00
Kyle Fuller 465834d89c Merge pull request #40 from njdehoog/array_any
Cast ForNode values to Array<Any>
2015-11-23 11:02:29 +00:00
Kyle Fuller 3722998c35 Replace NSRegularExpressions with string scanning 2015-11-21 16:27:24 +00:00
Kyle Fuller 22919dc5ce [Variable] Normalize resolved types into Swift types 2015-11-21 15:25:55 +00:00
Kyle Fuller 89b7da2e10 [Variable] Use Swift split over Foundation 2015-11-21 14:42:51 +00:00
Kyle Fuller 3bd3aec296 Resolve extends and include arguments as variables 2015-11-21 14:42:23 +00:00
Kyle Fuller 48a9a65bd5 [Token] Correctly split quoted components 2015-11-21 14:27:23 +00:00
Kyle Fuller c86ab9c5b9 Remove unnessecary uses of Foundation 2015-11-21 14:06:15 +00:00
Kyle Fuller dc774fe43b Add 'Namespace' a container for tags and filters 2015-11-18 16:10:27 +03:00
Kyle Fuller 226becb258 Release 0.4.0 2015-10-30 12:35:33 -07:00
Kyle Fuller 507cc5c661 [for block] Handle empty nodes
Closes #35
2015-10-26 08:26:16 -07:00
Kyle Fuller 9b26b7d71a [Context] Convenience push with block function 2015-10-26 08:26:16 -07:00
Kyle Fuller 19366ec71b Merge pull request #36 from AliSoftware/fix/if-node
Fix IfNode when using Array of arbitrary types
2015-10-26 08:23:37 -07:00
Kyle Fuller 8ac6e26876 Allow template filters to throw errors 2015-10-24 14:41:37 -07:00
Kyle Fuller f35be4b701 Add test around custom template filters 2015-10-24 14:35:25 -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 d5acc7298c Switch to Conche and Spectre 2015-10-22 21:13:26 -07:00
Kyle Fuller 6464b3170a Improve support for native Swift types 2015-10-22 11:42:50 -07:00
Kyle Fuller d03df12cba Move to JSON podspec 2015-10-22 10:05:46 -07:00
Kyle Fuller 62f6016e94 [README] Syntax highlight 2015-10-22 09:49:26 -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
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 9bdef5fee0 Merge pull request #34 from AliSoftware/fix/public
Made Token's `components()` & `contents` functions public
2015-10-18 09:12:30 -07:00
Kyle Fuller 1136ca8fca [Template] Set default value for bundle initialiser 2015-10-02 12:20:42 -07:00
Kyle Fuller 8f334563bf Merge pull request #30 from chunkerchunker/master
Allow Template.render() to be called multiple times
2015-10-02 12:15:49 -07:00
Kyle Fuller 9de84d5ca4 [Circle] Deploy on all tags 2015-09-25 15:13:32 -07:00
Kyle Fuller e5378b7603 [circleci] Update tag regex 2015-09-25 15:09:02 -07:00
Kyle Fuller 29dc14855c Release 0.3.0 2015-09-25 15:06:18 -07:00
Kyle Fuller 3935dac021 Publish releases to Circle CI 2015-09-25 15:03:31 -07:00