Passed
Push — master ( 61dd3f...482d1b )
by greg
01:51
created

src/cli/cms/editor/index.js   A

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 47
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 0
c 1
b 0
f 0
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 47
rs 10
bpm 0
cpm 0
noi 0
1
import Handlebars from 'handlebars'
2
import HandlebarsIntl from 'handlebars-intl'
3
import handlebarsHelperSlugify from 'handlebars-helper-slugify'
4
5
import hooks 		from '../../extend/abe-hooks'
6
7
/* Handlebar abe */
8
import abeEngine 						from './handlebars/abeEngine'
9
import abeImport 						from './handlebars/abeImport'
10
import compileAbe 					from './handlebars/compileAbe'
11
import folders 							from './handlebars/folders'
12
import listPage 						from './handlebars/listPage'
13
import printBlock 					from './handlebars/printBlock'
14
import printConfig 					from './handlebars/printConfig'
15
import printInput 					from './handlebars/printInput'
16
import recursiveFolder 			from './handlebars/recursiveFolder'
17
import recursivePrintConfig from './handlebars/recursivePrintConfig'
18
import sourceAttr 					from './handlebars/sourceAttr'
19
import sourceAutocomplete 	from './handlebars/sourceAutocomplete'
20
import sourceOption 				from './handlebars/sourceOption'
21
22
/* Register abe */
23
Handlebars.registerHelper('abeImport', 	abeImport)
24
Handlebars.registerHelper('abe', 				compileAbe)
25
Handlebars.registerHelper('folders', 		folders)
26
Handlebars.registerHelper('listPage', 	listPage)
27
Handlebars.registerHelper('printBlock', printBlock)
28
Handlebars.registerHelper('printConfig',printConfig)
29
Handlebars.registerHelper('printInput', printInput)
30
31
HandlebarsIntl.registerWith(Handlebars)
32
33
export {
34
	abeEngine,
35
	abeImport,
36
	compileAbe,
37
	folders,
38
	listPage,
39
	printBlock,
40
	printConfig,
41
	printInput,
42
	recursiveFolder,
43
	recursivePrintConfig,
44
	sourceAttr,
45
	sourceAutocomplete,
46
	sourceOption
47
}
48
49