Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Oct 4, 2016
1 parent f37dd68 commit e3c8933
Show file tree
Hide file tree
Showing 23 changed files with 755 additions and 758 deletions.
6 changes: 3 additions & 3 deletions src/cli/Builder.js
Expand Up @@ -8,7 +8,7 @@ import {
config,
fileUtils,
fileAttr,
getTemplate,
cmsTemplate,
Page
} from './'

Expand All @@ -29,7 +29,7 @@ class Builder {
.replace('.' + config.files.templates.extension, '.json')

var json = fse.readJsonSync(file.path)
var text = getTemplate(json.abe_meta.template)
var text = cmsTemplate.template.getTemplate(json.abe_meta.template)

Util.getDataList(fileUtils.removeLast(json.abe_meta.link), text, json)
.then(() => {
Expand All @@ -43,7 +43,7 @@ class Builder {
}
else if(file.path.indexOf('.json') > -1){
var json = fse.readJsonSync(file.path)
var text = getTemplate(json.abe_meta.template)
var text = cmsTemplate.template.getTemplate(json.abe_meta.template)

Util.getDataList(fileUtils.removeLast(json.abe_meta.link), text, json)
.then(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/cms/data/index.js
@@ -1,5 +1,5 @@
import removeDuplicateAttr from './remove-duplicate-attr'
import sql from './sql'
import * as sql from './sql'

export {
removeDuplicateAttr
Expand Down

0 comments on commit e3c8933

Please sign in to comment.