Hello Norbert
In pillar we needed variable lookup with Mustache so we used a https://github.com/Ducasse/Containers-PropertyEnvironment <https://github.com/Ducasse/Containers-PropertyEnvironment> instead of a simple dictionary.
thanks. Do I understand it correctly that the user has to build nested structured manually with the PropertyEnvironment? I started to do something similar to PropertyEnvironment but only as a wrapper to the value object plus parent reference. Iâm trying to make this purely internal.
In fact we did not want to modify mustache nor to fork it but the good solution would be that mustache use property environment internally instead of a dictionary and that this look up is hidden from the client. If you go that road let me know if I should enhance the API of CTEnvironment. Originally I developed it more as a lispish environment and less as a dictionary but Iâm unifying the API (using internally an OrderedDictionary to support some traversal order). I should add addAll: for example Stef
Norbert
Notice that https://github.com/Ducasse/Containers-PropertyEnvironment <https://github.com/Ducasse/Containers-PropertyEnvironment> has 100% test coverage.
Stef
-------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr <http://stephane.ducasse.free.fr/> http://www.synectique.eu <http://www.synectique.eu/> / http://www.pharo.org <http://www.pharo.org/> 03 59 35 87 52 Assistant: Julie Jonas FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France
-------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr http://www.synectique.eu / http://www.pharo.org 03 59 35 87 52 Assistant: Julie Jonas FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France