Skip to content

Instantly share code, notes, and snippets.

@rblalock
Created July 31, 2012 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rblalock/3219597 to your computer and use it in GitHub Desktop.
Save rblalock/3219597 to your computer and use it in GitHub Desktop.
Include
// index.xml:
<Window id="win1">
<Include src="myMarkup"/>
</Window>
// myMarkup.xml:
<View id="mySnippet">
<Label />
<Button id="loginButton" />
</View>
// Turns in to:
<Window id="win1">
<View id="mySnippet">
<Label />
<Button id="loginButton" />
</View>
</Window>
// index.js controller would access all the markup as if you put the markup there in the first place:
$.win1
$.mySnippet
$.loginButton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment