Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

custom HTML demo template receives CSS options #57

Merged
merged 1 commit into from

2 participants

andreu86 Artem Sapegin
andreu86

The html options received by a custom demo template were very limited. Right now it receives all the cssContext and it's more flexible.

Artem Sapegin sapegin merged commit 3a9f968 into from
Artem Sapegin
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 23, 2013
  1. andreu86
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 6 deletions.
  1. +3 −6 tasks/webfont.js
9 tasks/webfont.js
View
@@ -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)
Something went wrong with that request. Please try again.