Skip to content

Instantly share code, notes, and snippets.

@guidouil
Last active February 22, 2017 11:27
Show Gist options
  • Save guidouil/df0c8f7eeafd48d166c8396f9dc410d5 to your computer and use it in GitHub Desktop.
Save guidouil/df0c8f7eeafd48d166c8396f9dc410d5 to your computer and use it in GitHub Desktop.
Meteor Template Generator
[{[templateName]}]
---------------------------------------------------------
[{[templateName]}]_style.css
---------------------------------------------------------
[{[templateName]}]_template.html
<template name='[{[templateName]}]'>
</template>
---------------------------------------------------------
[{[templateName]}]_script.js
import { Template } from 'meteor/templating';
import './[{[templateName]}]_template.html';
Template.[{[templateName]}].onCreated(function() {
let template = this;
});
Template.[{[templateName]}].onRendered(function () {
let template = this;
});
Template.[{[templateName]}].helpers({
});
Template.[{[templateName]}].events({
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment