fixed redundant rendering of layout in mustache()