candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Anyone please reply.....Trying to make responsive design but Template.js not allowing #435

Closed sriducati closed 8 years ago

sriducati commented 8 years ago

I am trying to change template.js ...but i dont know where the objects are defined...

example 1: self.Room = { pane: '

{{>self.Message.item}}
' };

example 2: self.Message = { item: '

{{time}}
'};

As you can see Iam trying to call >self.Message.item inside self.Room but I am getting an error objects not found ....how do we successfully call in this way?

benlangfeld commented 8 years ago

You should grep for the name of the template. For example, https://github.com/candy-chat/candy/blob/master/src/view/pane/chat.js#L241. I think you are misunderstanding how Mustache works; perhaps you can explain what you're trying to achieve.

humitos commented 8 years ago

It would be amazing if you can make Candy responsive ;)