Skip to content
Open
Changes from 6 commits
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: 4 additions & 0 deletions Alloy/commands/compile/compilerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ exports.getParserArgs = function(node, state, opts) {
theValue = styler.STYLE_EXPR_PREFIX + theValue;
}

if ( theValue.startsWith('~/')) {
theValue = styler.STYLE_EXPR_PREFIX + 'WPATH("' + theValue.substring(2, theValue.length) + '")';
}

if (attrName === 'class') {
if (autoStyle) {
createArgs[CONST.CLASS_PROPERTY] = theValue.split(/\s+/) || [];
Expand Down