From ccd77090f4ed98ae93905459d810b56271fcbf48 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Thu, 8 Oct 2015 17:30:00 -0500 Subject: [PATCH] Fix css template for sprites --- .../{css.template.mustache => css.template.handlebars} | 8 ++++---- tasks/gulp-sprites.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename common/css/{css.template.mustache => css.template.handlebars} (88%) diff --git a/common/css/css.template.mustache b/common/css/css.template.handlebars similarity index 88% rename from common/css/css.template.mustache rename to common/css/css.template.handlebars index 92ceafd557..99e3e55e87 100644 --- a/common/css/css.template.mustache +++ b/common/css/css.template.handlebars @@ -1,16 +1,16 @@ -{{#items}} +{{#sprites}} .{{name}} { background-image: url({{{escaped_image}}}); background-position: {{px.offset_x}} {{px.offset_y}}; width: {{px.width}}; height: {{px.height}}; } -{{#custom}} +{{#if custom}} .customize-option.{{name}} { background-image: url({{{escaped_image}}}); background-position: {{custom.px.offset_x}} {{custom.px.offset_y}}; width: {{custom.px.width}}; height: {{custom.px.height}}; } -{{/custom}} -{{/items}} \ No newline at end of file +{{/if}} +{{/sprites}} diff --git a/tasks/gulp-sprites.js b/tasks/gulp-sprites.js index 016c0bf160..a5777af9ce 100644 --- a/tasks/gulp-sprites.js +++ b/tasks/gulp-sprites.js @@ -69,7 +69,7 @@ function createSpritesStream(name, src) { cssName: `spritesmith-${name}-${index}.css`, algorithm: 'binary-tree', padding: 1, - cssTemplate: 'common/css/css.template.mustache', + cssTemplate: 'common/css/css.template.handlebars', cssVarMap: cssVarMap }));