Titanium JIRA Archive
Alloy (ALOY)

[ALOY-77] Support per-component tag parsing for complex relationships

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-19T11:52:06.000+0000
Affected Version/s2012 Sprint 14
Fix Version/s2012 Sprint 14
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2012-06-27T11:41:46.000+0000
Updated2014-02-04T00:34:41.000+0000

Description

We will need to probably build out a system by which we can do various combinations of XML from View markup. For example, in Ti, we have certain parent/child relationships to certain objects which need to be mapped so that its more helpful in XML. Example is a map. Ideally, you would do something like:
<map>
  <annotation></annotation>
</map>
As a way to statically build a map with a single annotation. Also, in the tableview, you have a similar scenario but with additional nesting possibilities:
<tableview>
  <tableviewrow>
    <imageview url="foo.png" />
  </tableviewrow>
</tableview>
Also, as in the map above, we need to also be smart about Ti builtins to make sure we auto-prefix the ns (Ti.Map vs. Ti.UI) in these cases.

Comments

  1. Tony Lukasavage 2012-07-02

    Tag-specific parsers can now be written in the Alloy/commands/compile/parsers

JSON Source