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
if (Meteor.is_client) { | |
Template.beastie.resultOfSabatage = function () { | |
return Session.get('resultOfSabatage'); | |
}; | |
var handleResults = function(err, result) { | |
if (err) { | |
Session.set('resultOfSabatage', 'Failure! (' + err.error + ')'); | |
} else { | |
Session.set('resultOfSabatage', 'Success!'); |
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='store'> | |
{{#each items}} | |
{{> item}} | |
{{/each}} | |
</template> | |
<template name='item'> | |
{{name}} {{qty store}} | |
</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
// Blue theme | |
<template name="blueTheme"> | |
{{> blueWidget}} | |
{{> anotherBlueWidget}} | |
</template> | |
<template name="blueWidget"> | |
<span class="blue"></span> | |
</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
$('#page').empty().append($(Meteor.ui.render(function() { | |
Meteor.defer(function() { | |
// Stuff you wanna do when this thing gets redrawn | |
}); | |
return page(); | |
}))); |
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
<head> | |
<title>render-test</title> | |
</head> | |
<body> | |
</body> | |
<template name="roomList"> | |
<div id="roomList"> | |
<ul> |
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
if (Meteor.is_client) { | |
Chatrooms = new Meteor.Collection('chatRooms'); | |
Meteor.subscribe('chatRooms'); | |
var rooms = Chatrooms.find(); | |
Meteor.startup(function() { | |
var roomResults = Meteor.ui.render(function() { |
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
<body> | |
{{#routeIs "home"}} | |
{{> home}} | |
{{else}} | |
{{> kitchenSink}} | |
{{/routeIs}} | |
</body> |
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
new Demo({ | |
hosts: { | |
production: ['forms.meteor.com'] | |
}, | |
github: { | |
user: 'possibilities', | |
repo: 'meteor-forms' | |
} | |
}); |
OlderNewer