Skip to content

Add support for <Code> tag in View XML files #41

@brentonhouse

Description

@brentonhouse

Add support for tag in View XML files that would simply output the code from the body of the element into the auto-generated controller.

JIRA Ticket: https://jira.appcelerator.org/browse/ALOY-1700

Code can be added by src attribute:

<Code src="/code/myfile.js" />

By body text:

<Code>
// this is a test
var a = 123;
</Code>

Or by both:

<Code src="/code/myfile.js">
// this is a test
var a = 123;
</Code>

In the last case, it will put the code from the source file above the code from the body text.

The code will then be added to the auto-generated code that is put into the JavaScript controller.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions