Created
July 31, 2012 19:09
-
-
Save rblalock/3219597 to your computer and use it in GitHub Desktop.
Include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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