Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1277] Allow to load Alloy TSS styles from a string, not only from a filename

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionWon't Do
Resolution Date2017-05-09T19:01:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStyling
Labelsfeature
ReporterXavier Lacot
AssigneeFeon Sua Xin Miao
Created2015-05-27T22:18:37.000+0000
Updated2017-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.

Comments

  1. Xavier Lacot 2015-05-27

    A PR has been opened: https://github.com/appcelerator/alloy/pull/693
  2. Chee Kiat Ng 2016-03-03

JSON Source