Skip to content

Commit

Permalink
fix(columnPrefix): correctly convert attributes to column classes
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Apr 25, 2016
1 parent e60d399 commit 6ffecce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htmlbars-plugins/attribute-conversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ proto.transform = function AttributeConversionSupport_transform(ast) {
if (int >= MIN_COLUMN_COUNT && int <= pluginContext.columns) {
debug(chalk.grey("\t\tPushing Grid Class: ") + chalk.white("col-" + size + "-" + int));

classNames.push("col-" + size + "-" + int);
classNames.push(
(pluginContext.gridColumnPrefix ? pluginContext.gridColumnPrefix + "-" : "") +
size + "-" + int
);
} else {
throw new Error("Flexi#attribute-conversion:: '" + int +
"' is not a valid value for " + size + ".");
Expand Down

0 comments on commit 6ffecce

Please sign in to comment.