xml2tss

Alloy View XML to tss generator

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
xml2tss
0.0.510 years ago10 years agoMinified + gzip package size for xml2tss in KB

Readme

xml2tss
Build an empty tss file from an Alloy view xml file
Install
sudo npm install -g xml2tss
Usage
xml2tss [filename]
``` 

converted filed is returned to stdout (so you can build your own editor
plugin)

## to output to a file
xml2tss row.xml > ../styles/row.tss
## to clipboard (OS X)
xml2tss row.xml | pbcopy
# Output

From this:
<TextField id="itemField" hintText="What do you need to do?" />
<Button id="addBtn" class="button again">Add Item</Button>
<Button id="cancelBtn" class="button" class="two">Cancel</Button>
Generates this:
"#addBtn" : {
} "#addWin" : {
} "#cancelBtn" : {
} "#itemField" : {
} ".again" : {
} ".button" : {
} ".container" : {
} ```