Created
June 2, 2012 20:49
-
-
Save Mas-Tool/2859915 to your computer and use it in GitHub Desktop.
MasTool help please.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="RoomListTemplate"> | |
<div id="roomList"> | |
<ul> | |
{{#each rooms}} | |
<li>{{name}}</li> | |
{{/each}} | |
</ul> | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.RoomsTemplate.rooms=function() | |
{ | |
return Chatrooms.find(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function InitRoomList() | |
{ | |
var tabs=$("#tabs"); | |
var roomsTemplate = Template.RoomListTemplate(); | |
roomsTemplate=Meteor.ui.render(function(){ | |
return roomsTemplate; | |
}); | |
$("#tabs").append(roomsTemplate); | |
$("#tabs").tabs("add","#roomList","rooms"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment