Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove templates #152

Merged
merged 18 commits into from
Nov 1, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/common/templates/css/fonts.css.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% _.forIn(properties.asset.font, function(font) {
<% _.forIn(properties && properties.asset && properties.asset.font, function(font) {
var fileFormatArr = [];
if (font.eot) {
fileFormatArr.push("url('../" + font.eot.value + "');\n\tsrc: url('../" + font.eot.value + "?#iefix') format('embedded-opentype')");
Expand All @@ -25,4 +25,4 @@
font-style: <%= font.style.value %>;<% } if (font.weight) { %>
font-weight: <%= font.weight.value %>;<% } %>
}
<% }); %>
<% }); %>
27 changes: 26 additions & 1 deletion test/formats/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,34 @@ var file = {
};

var dictionary = {
"allProperties": [{
value: '#FF0000',
original: { value: '#FF0000' },
name: 'color_red',
attributes: {
category: 'color',
type: 'red',
item: undefined,
subitem: undefined,
state: undefined
},
path: ['color','red']
}],
"properties": {
"color": {
"red": {"value": "#FF0000"}
"red": {
value: '#FF0000',
original: { value: '#FF0000' },
name: 'color_red',
attributes: {
category: 'color',
type: 'red',
item: undefined,
subitem: undefined,
state: undefined
},
path: ['color','red']
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change correct?

}
};
Expand Down