Allow the creation of new entries

This commit is contained in:
Cássio Zen
2016-08-24 21:36:44 -03:00
parent fd79381160
commit b717874e7b
9 changed files with 73 additions and 29 deletions

View File

@ -0,0 +1,8 @@
export function createEntry(path = '', slug = '', raw = '') {
const returnObj = {};
returnObj.path = path;
returnObj.slug = slug;
returnObj.raw = raw;
returnObj.data = {};
return returnObj;
}