Commit Graph

25 Commits

Author SHA1 Message Date
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
c21651ce50 method -> transform 2021-03-22 12:11:22 +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
a08b1e8087 Swift format, swift 5.3 2021-03-21 11:56:08 +00:00
Adam Fowler
f9f8c1320a Renaming
HBMustacheMethods -> HBMustacheTransformable
HBMustacheContext -> HBMustacheSequenceContext
2021-03-19 14:48:44 +00:00
Adam Fowler
b637c4c4a4 Tidy standalone processing 2021-03-18 12:58:48 +00:00
Adam Fowler
9b17bd6827 Render optimisation 2021-03-18 10:55:55 +00:00
Adam Fowler
16a2c54be6 Added sections tests. Allow for searching of context stack 2021-03-18 10:32:42 +00:00
Adam Fowler
169a7bbbf4 Added SpecPartialsTests and fixed issues 2021-03-17 18:30:55 +00:00
Adam Fowler
66edcba185 swift format 2021-03-15 18:24:06 +00:00
Adam Fowler
5dd3ab2af1 render(_, withTemplateNamed) -> render(_, withTemplate) 2021-03-15 15:18:50 +00:00
Adam Fowler
978b14a96a Wrap Lambda function in a struct to avoid crash in Mirror 2021-03-15 14:46:40 +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
06251739d7 Keep pointer to Library in template 2021-03-14 08:51:16 +00:00
Adam Fowler
aaf285154d Add support for Lambdas 2021-03-14 08:32:50 +00:00
Adam Fowler
d9bead1553 Add context object for render 2021-03-14 08:32:23 +00:00
Adam Fowler
8df4e63432 Add methods for Array and Dictionary 2021-03-12 17:37:25 +00:00
Adam Fowler
c9e33153f3 Basic method setup and calling 2021-03-12 14:03:46 +00:00
Adam Fowler
633f494e18 Moving stuff about, renaming 2021-03-12 09:55:12 +00:00
Adam Fowler
02af0ec296 Add support for dynamic partials 2021-03-12 08:54:49 +00:00
Adam Fowler
fc53f09dfb Add library and support for partials 2021-03-12 08:41:13 +00:00
Adam Fowler
7f61c8dd72 HBTemplate -> HBMustacheTemplate, escape characters
Add tests for mustache examples
2021-03-12 07:43:09 +00:00
Adam Fowler
55245e960f Add support for member variables 2021-03-11 17:14:12 +00:00
Adam Fowler
9cbe74f9ee Load templates and render objects 2021-03-11 16:58:49 +00:00