Skip to content

Instantly share code, notes, and snippets.

@tonylukasavage
Created May 3, 2012 16:01
Show Gist options
  • Save tonylukasavage/2586790 to your computer and use it in GitHub Desktop.
Save tonylukasavage/2586790 to your computer and use it in GitHub Desktop.
html_vs_xml
<!-- HTML and CSS -->
<html>
<head>
<title>Declarative UI Master Detail Test</title>
<script src="/controller/index.js"></script>
</head>
<body>
<div id="mainWindow" data-ti-api="Window" style="-ti-navBarHidden:false;">
<div id="header" data-ti-api="View">
<div id="title" data-ti-api="Label" style="-ti-text:'My Title';"></div>
</div>
</div>
</body>
<script>
</html>
<!-- XML and JSON (represented as an attribute here) -->
<Window id="mainWindow" controller="/controller/index.js" navBarHidden="false">
<View id="header">
<Label id="title" text="My Title"/>
</View>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment