[ALOY-1727] @import feature for Alloy TSS files
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Styling |
| Labels | n/a |
| Reporter | Sebastian Klaus |
| Assignee | Unknown |
| Created | 2020-03-10T06:06:22.000+0000 |
| Updated | 2020-03-10T18:31:05.000+0000 |
Description
To save codelines, I would appreciate to have the possibility to include parent TSS files.
With this function, you can prevent a complete blown up app.tss oder same code in different files.
Particularly interesting for required partial views
@import "../button.tss"
@import "../textfield.tss"
etc…
There is a workaround from Fokke: https://gist.github.com/FokkeZB/6011624 which could be used maybe as a code starter.
Discussion can be followed here: https://ti-slack.slack.com/archives/C03CVQX2A/p1583484006295800
I like the idea of this feature, it seems to have been raised before and never acted upon (ALOY-1194). I'll move this over to ALOY
Prior art ltss - https://github.com/dbankier/ltss stss - https://github.com/RonaldTreur/STSS
Updated gist here https://gist.github.com/ewanharris/23f41e0080c75148691de9fef739252f
Thank you for roadmapping