Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
brentonhouse opened this issue Aug 6, 2019 · 3 comments
Closed

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

brentonhouse opened this issue Aug 6, 2019 · 3 comments
Assignees

Comments

@brentonhouse
Copy link
Collaborator

brentonhouse commented Aug 6, 2019

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.

@brentonhouse brentonhouse self-assigned this Aug 6, 2019
@brentonhouse
Copy link
Collaborator Author

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

@brentonhouse
Copy link
Collaborator Author

Created Alloy PR: tidev/alloy#937

@brentonhouse
Copy link
Collaborator Author

Merged PR #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant