Commit Graph

6 Commits

Author SHA1 Message Date
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
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
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
Adam Fowler
2663d13ea7 Rename package to swift-mustache (#27)
* Rename package to swift-mustache

* Update CI
2024-03-15 07:28:57 +00:00