problem with DefaultMustacheFactory and template inheritance

60 views
Skip to first unread message

Mark Nuttall-Smith

unread,
May 23, 2012, 11:31:12 PM5/23/12
to mustac...@googlegroups.com
Hi,

I've been playing with the mustachelet project and using template inheritance, however I am running into a problem whereby only the last child template that gets compiled by the DefaultMustacheFactory is usable. If a new DefaultMustacheFactory is created before compiling each template they all work fine.

The attached project demonstrates the problem. If I load /sub1 I get the template for sub2 without any values filled. However, if I load /sub2 the template displays correctly. Reversing the order in which the templates are compiled reverses the problem.

Not sure if it's a bug, or I'm doing something wrong, but would appreciate if someone would take a look..

Thanks,
Mark
mustachelet.zip

Sam

unread,
Jun 26, 2012, 3:24:04 AM6/26/12
to mustac...@googlegroups.com
I'm sorry I missed this somehow. This was a bug in the implementation that Matt also pointed out. There is a fix in master (0.8.1-SNAPSHOT) and I will be pushing that out as a release shortly.

Thanks,
Sam
Reply all
Reply to author
Forward
0 new messages