mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
23 lines
577 B
JavaScript
23 lines
577 B
JavaScript
var post = {};
|
|
|
|
Template[getTemplate('post_item')].created = function () {
|
|
post = this.data;
|
|
};
|
|
|
|
Template[getTemplate('post_item')].helpers({
|
|
postModules: function () {
|
|
return postModules;
|
|
},
|
|
getTemplate: function () {
|
|
return getTemplate(this.template);
|
|
},
|
|
moduleContext: function () { // not used for now
|
|
var module = this;
|
|
module.templateClass = camelToDash(this.template) + ' ' + this.position + ' cell';
|
|
module.post = post;
|
|
return module;
|
|
},
|
|
moduleClass: function () {
|
|
return camelToDash(this.template) + ' post-module';
|
|
}
|
|
});
|