Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1647] Add support for camelCase, kabab-case, and snake_case XML elements in Alloy

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusResolved
ResolutionWon't Do
Resolution Date2019-03-15T18:03:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsalloy, case, element, titanium, xml
ReporterBrenton House
AssigneeFeon Sua Xin Miao
Created2019-03-06T23:51:58.000+0000
Updated2019-03-15T18:03:20.000+0000

Description

Add support for camelCase, kabab-case, and snake_case XML elements in Alloy. Right now, only PascalCase is supported. For Example, instead of {noformat} {noformat} You could write it any of these different ways: {noformat} {noformat} Not a huge feature but it is a relatively small change and gives a lot of flexibility and control to the developer.

Comments

  1. Brenton House 2019-03-07

    Added PR: https://github.com/appcelerator/alloy/pull/923
  2. Chris Barber 2019-03-15

    This is a really bad idea. We have a convention. If you use Alloy, you do PascalCase. Period. With the Vue.js support, you use kebab-case. Period. Supporting different conventions is confusing and antipattern.

JSON Source