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
Using worker: worker-linux-docker-dbc4b072.prod.travis-ci.com:travis-linux-16 | |
travis_fold:start:system_info | |
[0K[33;1mBuild system information[0m | |
Build language: android | |
[34m[1mBuild image provisioning date and time[0m | |
Thu Feb 5 15:09:33 UTC 2015 | |
[34m[1mOperating System Details[0m | |
Distributor ID: Ubuntu | |
Description: Ubuntu 12.04.5 LTS |
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
/** | |
create group routes, so every router has prefix radiegtya | |
*/ | |
var groupRoutes = FlowRouter.group({ | |
prefix: '/radiegtya', | |
name: 'radiegtya', | |
}); | |
/** | |
create the main router called site, and use BlazeLayout render "meteoris_themeAdminMain" from metoris:theme-admin package, and accessing template called "radiegtya_siteIndex" |
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
/* | |
create a namespace called Radiegtya.SiteController | |
*/ | |
Namespace('Radiegtya.SiteController'); | |
/** | |
Create controller which extends Meteoris Controller | |
*/ | |
Radiegtya.SiteController = Meteoris.Controller.extend({ | |
/* set default counter at constructor */ |
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="radiegtya_siteIndex"> | |
<div class="content"> | |
<div class="box"> | |
<div class="box-body"> | |
<button>Click Me</button> | |
<p> | |
You've pressed the button {{counter}} times. | |
</p> | |
</div> | |
</div> |
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
var ctrl = new Radiegtya.SiteController(); | |
/** | |
In the template helper section we are using index() method to get object return value from controller. It's because index was the action and also the file name suffix. This structure will make You easier to get jobs done, when your team getting bigger and the code getting bigger. | |
*/ | |
Template.radiegtya_siteIndex.helpers({ | |
myName: function () { | |
return ctrl.index().myName; | |
}, | |
myHobby: 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
//routing as home page (/), rendering meteoris_themeAdminMain as the template and radiegtya_chatIndex as the content | |
FlowRouter.route('/', { | |
action: function() { | |
BlazeLayout.render('meteoris_themeAdminMain', {content:"radiegtya_chatIndex"}); | |
} | |
}); |
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="radiegtya_chatIndex"> | |
<div class="content"> | |
<div class="box"> | |
<div class="box-body"> | |
<h1>Welcome to Meteoris Chat</h1> | |
</div> | |
</div> | |
</div> | |
</template> |
OlderNewer