Commit Graph

15 Commits

Author SHA1 Message Date
Adam Fowler
f029081b61 Project template updates (#25)
* Project template updates

* More changes

* run swiftformat
2024-03-08 12:04:49 +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
1c51fcfe8c Add file header via swift format 2021-04-08 17:36:54 +01:00
Adam Fowler
d3edef1b8e Add support for custom text escaping (#11)
* Add support for custom text escaping

* swift format

* Remove withDefaultDelimiters

* Update README.md

* Don't pass content type into partial
2021-03-23 17:36:28 +00:00
Adam Fowler
ef4eb40eb7 Comments 2021-03-22 14:14:34 +00:00
Adam Fowler
35d52603e2 Template inheritance (#9)
* Move all context variables into HBMustacheContext

* Add support for reading inherited sections

* Render inherited tokens

* Test inheritance spec, fix two minor issues

* fix warning

* swift format
2021-03-22 12:02:22 +00:00
Adam Fowler
f9f8c1320a Renaming
HBMustacheMethods -> HBMustacheTransformable
HBMustacheContext -> HBMustacheSequenceContext
2021-03-19 14:48:44 +00:00
Adam Fowler
66edcba185 swift format 2021-03-15 18:24:06 +00:00
Adam Fowler
3559faac61 Rectify HBMustacheContext methods odd and even 2021-03-15 14:33:28 +00:00
Adam Fowler
e2cfbb7acc Make runMethod calls public, add some comments 2021-03-15 14:27:32 +00:00
Adam Fowler
0f2c3bcea9 Added sorted methods 2021-03-15 10:53:33 +00:00
Adam Fowler
465ad49f1f Add index filter 2021-03-14 17:53:20 +00:00
Adam Fowler
33b488fe40 Add support for first/last functions 2021-03-14 12:47:00 +00:00
Adam Fowler
5f49dd6953 Moving stuff about/renaming 2021-03-14 10:19:51 +00:00
Adam Fowler
d9bead1553 Add context object for render 2021-03-14 08:32:23 +00:00