The following works by setting myObject to the value of someObject
- $("#dummy").append(can.view.mustache("<dummy-tag myObject='{{.}}'></dummy-tag>")(someObject);
But what if I wanted to pass in multiple objects. I thought this might work, but it does not.
- $("#dummy").append(can.view.mustache("<dummy-tag myObject='{{myObject}}' thing='{{thing}}'></dummy-tag>")({myObject: someObject,
thing: myThing}));
Is it not possible to pass in multiple objects? Do I just have to do something like this and grab the objects off of scope.data?
- $("#dummy").append(can.view.mustache("<dummy-tag data='{{.}}'></dummy-tag>")({thing: thing,
games: games}));