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

src/cli/cms/templates/handlebars/attrAbe.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 13
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 1
c 1
b 0
f 0
nc 1
mnd 0
bc 1
fnc 1
dl 0
loc 13
rs 10
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A attrAbe.js ➔ attrAbe 0 4 1
1
import Handlebars from 'handlebars'
2
import abeEngine from '../../../'
3
4
/**
5
 * Print properties inside html tag
6
 * @param  {String} attr exemple: atl, title, ...
7
 * @param  {[type]} value value of the property
8
 * @return {String} the value to print inside the attribut
9
 */
10
export default function attrAbe (attr, value) {
11
  var content = abeEngine._content
0 ignored issues
show
Unused Code introduced by
The variable content seems to be never used. Consider removing it.
Loading history...
12
  return new Handlebars.SafeString(value)
13
}
14