Adam Fowler
534f9f9e60
Add testPartialInSubfolder ( #72 )
...
* Add testPartialInSubfolder
* Replace windows folder separator with mac/linux folder separator
2025-09-01 09:59:05 +01:00
Ralph Kühnert
6df64896f4
Add / as a valid partialNameChar and use it in parse ( #71 )
...
* Add / as a valid partialNameChar and use it in parse
* maybe let's not keep "bla" in the tests
2025-08-30 16:13:26 +01:00
dependabot[bot]
28df3156e2
Bump actions/checkout from 4 to 5 in the dependencies group ( #70 )
2025-08-12 14:06:41 +02:00
hummingbird-automation[bot]
2aee7d23bc
Update from hummingbird-project-template 9f1753de24c31bae77d963d51cc52bff1d895b4e ( #68 )
...
Co-authored-by: Joannis <Joannis@users.noreply.github.com >
2025-06-23 12:27:54 +01:00
hummingbird-automation[bot]
aaacbd989b
Update from hummingbird-project-template e9eae39c0a5fff1b127f751ff4e166635a2e34ee ( #67 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2025-04-05 16:37:56 +01:00
Go Takagi
2add8847a1
Support Swift 6 mode ( #65 )
...
* Enable swift 6 mode
* Attach Sendable
* Stop async context because enumerator can use only synchronous contexts
* Fix global shared mutable state for MustacheContentTypes
* Revert "Fix global shared mutable state for MustacheContentTypes"
This reverts commit d4ccc83e07aeb48f4aa4024b71eb8e5f70131bc5.
* Use instead of lock
* Support 5 and 6 versions
* Lock on access in Swift 6
* Support 5.9
* Revert "Support 5.9"
This reverts commit 9845b3bc448b2af7238c3ac88aabe6d764b2e667.
* Fix 5.9 compatibility
* Unify to manage the same lock logic in 5.9 and 6
* Add withLock backport in NSLock
2025-03-26 09:53:44 +00:00
hummingbird-automation[bot]
eeb4eec97f
Update from hummingbird-project-template 39b2227dee2e6590b8dc0b72820f09433a569c17 ( #62 )
2025-01-30 07:41:59 +00:00
hummingbird-automation[bot]
c8b6af450d
Update from hummingbird-project-template 812da0c4a36c77ed781dd120d6d6dee7ca7841c2 ( #61 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2025-01-29 11:13:29 +00:00
hummingbird-automation[bot]
e57f85ff19
Update from hummingbird-project-template 7d30d3523baa6b40778e8d8a2a02522c9ea3aa79 ( #60 )
2025-01-24 09:19:51 +01:00
Adam Fowler
7aa46bc92b
Update links in README.md
2024-12-14 10:37:43 +00:00
hummingbird-automation[bot]
03e9689cc5
Update from hummingbird-project-template c77fc90235989fe91ad9e969da24dcf098d3b979 ( #59 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2024-12-05 11:10:06 +00:00
hummingbird-automation[bot]
ec4ef9aa04
Update from Hummingbird Project Template ( #58 )
...
* Update from hummingbird-project-template 572d468b2cabeca286314c5a35196bd42445c8ef
* run swift-format
* Remove .swiftformat
---------
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
Co-authored-by: Adam Fowler <adamfowler71@gmail.com >
2024-11-28 07:31:09 +00:00
hummingbird-automation[bot]
8c5c8ead74
Update from hummingbird-project-template b5c332c3bd76235c1eac8d040c4293072d17d2db ( #57 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2024-11-15 15:35:27 +00:00
dependabot[bot]
12021c152c
Bump codecov/codecov-action from 4 to 5 in the dependencies group ( #56 )
2024-11-15 07:04:30 +00:00
Joannis Orlandos
3f627a5f7d
Merge pull request #55 from hummingbird-project/project-template-update
...
Update from Hummingbird Project Template
2024-10-20 22:16:48 +02:00
adam-fowler
bdf22938b7
Update from hummingbird-project-template 2d0499134dc60b407a543eee4ea126078b51d4a0
2024-10-20 18:24:14 +00:00
Adam Fowler
9de71fc4d1
Update docs again
2024-09-20 10:23:54 +01:00
Adam Fowler
8726b2d119
Update docs
2024-09-20 10:22:47 +01:00
Adam Fowler
933fa3d60f
Add support for proper lambdas ( #48 )
...
* Add support for proper lambdas
* Get rid of recursion
Remove renderSectionLambda as I can use renderUnescapedLambda for that.
2024-09-19 17:17:50 +01:00
Adam Fowler
8fba85e28c
doc comment update
2024-09-19 11:28:57 +01:00
hummingbird-automation[bot]
304429f2fa
Update from hummingbird-project-template 564b9b525b04f0705e59cd1189d90eb9f6f2233b ( #54 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2024-09-18 14:25:28 +01:00
hummingbird-automation[bot]
b2c5e3e673
Update from hummingbird-project-template 6c7f44e2f7e58f2d298a177e73421f244f41f90e ( #53 )
2024-09-18 12:54:28 +01:00
Joannis Orlandos
4a879231bd
Merge pull request #51 from hummingbird-project/project-template-update
...
Update from Hummingbird Project Template
2024-09-15 15:15:34 +03:00
adam-fowler
2ed2b7a351
Update from hummingbird-project-template 52a2c1f50039efafa9a0c6eedeb674a817ec3606
2024-09-15 11:23:39 +00:00
Joannis Orlandos
17eaa62d5b
Merge pull request #50 from hummingbird-project/docc-changes
...
Inconsistency in documentation brought up by docc v6
2024-09-14 09:36:05 +03:00
Adam Fowler
b6736b2ce8
Changes required by docc
2024-09-13 17:32:50 +01:00
Adam Fowler
01b1f21ed6
Dynamic names support ( #49 )
...
* Dynamic names support
* Add support for dynamic names in parent tags
* Support all dynamic names spec
* Swift 5.8 compile fix
2024-08-28 08:31:06 +01:00
hummingbird-automation[bot]
a010f172c5
Update from hummingbird-project-template b3ba991f3741d80678253d3eae3253cd37a86ef1 ( #46 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2024-08-26 09:08:25 +01:00
Adam Fowler
c3beb4a327
Use URLSession.shared.data in tests in swift 6 or later ( #44 )
2024-08-20 19:45:19 +01:00
Adam Fowler
f13bd839a1
Add FoundationNetworking to Windows
2024-07-20 18:47:40 +01:00
hummingbird-automation[bot]
6bfffe2098
Update from hummingbird-project-template 6e3541131c4cafc5b206fb1fce39e9f98bb6079a ( #43 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2024-07-19 12:01:56 +01:00
Adam Fowler
cde358e364
Fixes for swift 5.8 ( #42 )
...
* Fixes for swift 5.8
* Add 5.8 to CI
* More fixes
2024-07-19 10:52:49 +01:00
Adam Fowler
5bb66ac425
Add development support for reloading templates when you render them ( #30 )
...
* Add support for reloading templates when you render them
* comment
* Ensure reload is only available in DEBUG
* move preprocessor block
* swift format
* MustacheTemplate.init?(filename:) internal
* Only pass reload flag down in DEBUG builds
* Rebase with main
2024-07-16 15:46:57 +01:00
Adam Fowler
7689de0a42
Fix issues from Inheritance spec ( #36 )
...
* Separate inheritance block and expansion
* Catch top level partial definition, and block newlines
* Add testTrailingNewLines to verify output of trailing newlines in partials
* Remove comment
* If block,partial has indentation add indent for first line
* Re-enable full sections spec
* withBlockExpansion
* Get indentation of blocks correct
2024-07-15 09:36:15 +01:00
Mahdi Bahrami
cc0eaffa06
Make MustacheSequence public ( #38 )
...
* Make `MustacheSequence` public
* `MustacheSequence` require conformance to `Sequence`
* remove protocol requirements
* `MustacheContext` revert to `internal`
2024-07-14 18:44:59 +01:00
Mahdi Bahrami
a1a163bad1
Fix retroactive conformances in tests ( #39 )
...
* Fix retroactive conformances in tests
* conformances use a shared logic
* Use `hasFeature(RetroactiveAttribute)` instead of `compiler(>=6.0)`
* even better use of shared logic
2024-07-14 12:49:35 +01:00
Mahdi Bahrami
58b9c3b00c
Implement Recursive Transforms ( #37 )
...
* Implement Recursive Transforms
* Correct test names
* apply suggestions
* format
* add comments
* move the parse function
* refine `parseTransforms()` function
* refinements
* format
* Swift Format again
---------
Co-authored-by: Adam Fowler <adamfowler71@gmail.com >
2024-07-14 12:49:16 +01:00
hummingbird-automation[bot]
a66a7d139c
Update from hummingbird-project-template 0b21a9564b4c2579531565487e1d7389e8c2be4c ( #34 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2024-07-09 10:50:47 +01:00
hummingbird-automation[bot]
5c75f772c3
Update from hummingbird-project-template c85b4792e08b230bc8643b0bfb4def3f302e17cf ( #33 )
2024-07-03 09:30:41 +01:00
Adam Fowler
d642832ffe
Make deprecations unavailable ( #31 )
2024-07-03 09:30:21 +01:00
hummingbird-automation[bot]
04a7e9f70a
Update from hummingbird-project-template e3f57311d7cc5cffc08d6c9da39c155d4c0d4cfd ( #32 )
...
Co-authored-by: adam-fowler <adam-fowler@users.noreply.github.com >
2024-06-28 13:07:01 +01:00
Joannis Orlandos
540a1b8c80
Fix readme link ( #28 )
2024-05-11 16:10:20 +01:00
Adam Fowler
7ea5b5d11a
Update documentation links
2024-03-22 12:34:03 +00:00
Adam Fowler
2663d13ea7
Rename package to swift-mustache ( #27 )
...
* Rename package to swift-mustache
* Update CI
2024-03-15 07:28:57 +00:00
Adam Fowler
bdfa05391a
Remove HB prefix, make Parser private ( #26 )
2024-03-11 22:07:05 +00:00
Adam Fowler
f029081b61
Project template updates ( #25 )
...
* Project template updates
* More changes
* run swiftformat
2024-03-08 12:04:49 +00:00
Adam Fowler
f5177888f9
Merge pull request #24 from hummingbird-project/2.x.x
...
Merge 2.x.x into main
2024-03-08 10:53:44 +00:00
Adam Fowler
071b182a00
2.x.x Template struct ( #22 )
...
* Start of turning template into a struct
* Everything is Sendable now, just doesnt work
* Add library to context
* Make sure render is initialized with library
* comment about inheritance spec
* Add register back in
* Re-instate register functions
* Re-instate commented out print
* Fix tabbing in Partial tests
* Make HBMustacheLibrary.loadTemplates async
* Update platforms, swift version
2024-01-31 15:43:46 +00:00
Adam Fowler
bec77d1f2b
More GH action updates
2024-01-30 17:01:09 +00:00
Adam Fowler
52663ae87b
Update CI
2024-01-30 16:56:07 +00:00