Mustache bug?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Mustache bug?

Stéphane Ducasse
Hi 

In pillar we needed variable lookup with Mustache so we used a https://github.com/Ducasse/Containers-PropertyEnvironment
instead of a simple dictionary. 

Notice that https://github.com/Ducasse/Containers-PropertyEnvironment has 100% test coverage. 

Stef

--------------------------------------------
Stéphane Ducasse
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

Reply | Threaded
Open this post in threaded view
|

Re: Mustache bug?

NorbertHartl
Steph,

Am 13.08.2018 um 18:45 schrieb Stéphane Ducasse <[hidden email]>:

Hi 

In pillar we needed variable lookup with Mustache so we used a 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. 

Norbert
Notice that https://github.com/Ducasse/Containers-PropertyEnvironment has 100% test coverage. 

Stef

--------------------------------------------
Stéphane Ducasse
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

Reply | Threaded
Open this post in threaded view
|

Re: Mustache bug?

Stéphane Ducasse
Hello Norbert

In pillar we needed variable lookup with Mustache so we used a 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 has 100% test coverage. 

Stef

--------------------------------------------
Stéphane Ducasse
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
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