Skip to content

Instantly share code, notes, and snippets.

View ciwolsey's full-sized avatar

Carl Wolsey ciwolsey

  • Yorkshire, England
View GitHub Profile
@ciwolsey
ciwolsey / derp
Created July 6, 2014 05:18 — forked from anonymous/derp
Template.myTemplate.myHelper = function() {
return myCollection.findOne();
}
// IS THIS ALL YOU'RE TRYING TO EXPLAIN?
<template name="myTemplate">
{{myHelper.status}}
{{myHelper.name}}
</template>
in your rendered template
{{#contentFor region="header"}}
<!-- Header content here -->
{{/contentFor}}
//---------- OR ------------------------------------
{{>yield 'bananas'}}
<template name="basic_typehead">
<form class="add-course">
<div>
<div class="form-group">
<input class="form-control typeahead" name="courses" type="text"
placeholder="Add a course" autocomplete="off" spellcheck="off"
data-source="getCourses"/>
<input type="submit" id="hide"/>
</div>
</div>
@ciwolsey
ciwolsey / App.jsx
Last active April 24, 2016 20:21 — forked from Yatekii/App.jsx
import React, { Component, PropTypes } from 'react';
import ReactDOM from 'react-dom';
import { Meteor } from 'meteor/meteor';
import { Session } from 'meteor/session'
import { createContainer } from 'meteor/react-meteor-data';
import { Mailboxes } from '../api/mailboxes.js';
import { Mails } from '../api/mails.js';
import Mailbox from './Mailbox.jsx';
export default {
isAllowed() {
return false;
}
};