Allow the use of data stored in STON format in a template.#11
Allow the use of data stored in STON format in a template.#11demarey wants to merge 5 commits intonoha:masterfrom
Conversation
Also define a trait to reuse data setup for testing
|
WARNING: this PR depends on #9 |
noha
left a comment
There was a problem hiding this comment.
Christophe we should have a discussion. I don't want to frustrate you but there is so many things questionable I'm not fine with.
Introducing a Trait is raising complexity. Doing that for the potential usefullness of having memory filesystem. It is a static site generator. So we have a disk that we can use and have no side case that only works in memory filesystem.
The dataPath I don't get either. So we should talk
Traits are now part of the Pharo core and are just a way to reuse pieces of code. Where do you see complexity? Yes, we can talk so you can see what data the user would want to use in templates (ex: a description of a menu hierarchy that could be transformed by Mustache). |
It is useful, for example, to build a menu by using mustache sections facilities.
Also define a trait to reuse data setup for testing