lib/html_formatter.js
function getFeature(feature, scenariosNumberInFeature, passedScenariosNumberInFeature, stepsNumberInFeature, passedStepsInFeature) {

        var template = grunt.file.read(templates.featureTemplate),
            featureTemplate;

        featureTemplate = grunt.template.process(template, {
            data: {
                name: feature.name,
                scenariosNumberInFeature: scenariosNumberInFeature,
                passedScenariosNumberInFeature: passedScenariosNumberInFeature,
                stepsNumberInFeature: stepsNumberInFeature,
                passedStepsInFeature: passedStepsInFeature
            }
        });
        return featureTemplate;
    }
function getFeature(feature, scenariosNumberInFeature, passedScenariosNumberInFeature, stepsNumberInFeature, passedStepsInFeature) {

        var template = grunt.file.read(templates.featureTemplate),
            featureTemplate;

        featureTemplate = grunt.template.process(template, {
            data: {
                name: feature.name,
                scenariosNumberInFeature: scenariosNumberInFeature,
                passedScenariosNumberInFeature: passedScenariosNumberInFeature,
                stepsNumberInFeature: stepsNumberInFeature,
                passedStepsInFeature: passedStepsInFeature
            }
        });
        return featureTemplate;
    }
function getFeature ( feature , scenariosNumberInFeature , passedScenariosNumberInFeature , stepsNumberInFeature , passedStepsInFeature ) { var template = grunt . file . read ( templates . featureTemplate ) , featureTemplate ; featureTemplate = grunt . template . process ( template , { data : { name : feature . name , scenariosNumberInFeature : scenariosNumberInFeature , passedScenariosNumberInFeature : passedScenariosNumberInFeature , stepsNumberInFeature : stepsNumberInFeature , passedStepsInFeature : passedStepsInFeature } } ) ; return featureTemplate ; }
Return html code of feature element based on feature template
@param feature - object which contains feature data
@returns {*}
Return html code of feature element based on feature template