[ALOY-1277] Allow to load Alloy TSS styles from a string, not only from a filename
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Won't Do |
Resolution Date | 2017-05-09T19:01:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Styling |
Labels | feature |
Reporter | Xavier Lacot |
Assignee | Feon Sua Xin Miao |
Created | 2015-05-27T22:18:37.000+0000 |
Updated | 2017-05-09T19:01:27.000+0000 |
Description
At the moment, [Alloy's styler](https://github.com/appcelerator/alloy/blob/master/Alloy/commands/compile/styler.js#L261) only allows to load styles from a file.
In several cases (alternative syntaxes transformations, for instance), it might be useful to be able to load styles from a string. The proposed change introduces a
loadStyleFromString()
method, which would fill this need and would be called by the original loadStyle()
method.
A PR has been opened: https://github.com/appcelerator/alloy/pull/693