@param | Type | Description |
---|---|---|
patternObject | Object | metadata from pattern data file (default: pattern.yml) |
options | Object | pattern-importer options |
Gets name of pattern template file. Defaults to .html file (if it exists)
exports.getPatternTemplateName = function (patternObject, options) {
'use strict';
if (patternObject[options.templateEngine]) {
return patternObject[options.templateEngine];
}
else if (patternObject.html) {
return patternObject.html;
}
else {
return false;
}
};