Skip to content
Browse files

custom HTML demo template receives CSS options

  • Loading branch information...
1 parent aae8982 commit ccc9c53a100b93b97529d1749632a6a69528d240 @andreu86 committed Oct 23, 2013
Showing with 3 additions and 6 deletions.
  1. +3 −6 tasks/webfont.js
View
9 tasks/webfont.js
@@ -237,14 +237,11 @@ module.exports = function(grunt) {
});
var htmlStyles = grunt.template.process(cssTemplate, {data: cssContext});
- var htmlContext = {
- fontBaseName: fontBaseName,
- glyphs: glyphs,
+ var htmlContext = _.extend({}, cssContext, {
baseClass: syntax === 'bem' ? 'icon' : '',
classPrefix: 'icon' + (syntax === 'bem' ? '_' : '-'),
- styles: htmlStyles,
- ligatures: addLigatures
- };
+ styles: htmlStyles
+ });
var demoTemplate = htmlDemoTemplate
? grunt.file.read(htmlDemoTemplate)

0 comments on commit ccc9c53

Please sign in to comment.
Something went wrong with that request. Please try again.