Skip to content

Instantly share code, notes, and snippets.

@nicoespeon
Last active March 23, 2016 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicoespeon/99a2d9914afd2160ab6a to your computer and use it in GitHub Desktop.
Save nicoespeon/99a2d9914afd2160ab6a to your computer and use it in GitHub Desktop.
Blog - Plop — a micro-generator to ease your daily life - calendars parsed
import Module from "core/module";
import _ from "lodash";
// IMPORT MODULE FILES
import Model from "./calendars.model";
const namespace = "calendars";
Model = Model.extend( { namespace: namespace } );
export default Module.extend( {
initialize() {
_.defaults( this.options, { isDisplayed: true } );
},
onStart() {
this.ready();
},
onReady() {
// Do something when module is considered as ready
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment