Skip to content

Instantly share code, notes, and snippets.

@aadsm
Created November 12, 2013 23:19
Show Gist options
  • Select an option

  • Save aadsm/7440622 to your computer and use it in GitHub Desktop.

Select an option

Save aadsm/7440622 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Main</title>
<script type="text/montage-serialization">
{
"owner": {
"prototype": "ui/main.reel",
"properties": {
"element": {"#": "main"}
}
},
"table": {
"prototype": "ui/table.reel",
"properties": {
"element": {"#": "table"}
}
},
"text": {
"prototype": "digit/ui/text.reel",
"properties": {
"element": {"#": "text"},
"value": "Text"
},
"bindings": {
"value": {"<-": "@table:row.object + ', ' + @table:column.object"}
}
}
}
</script>
</head>
<body>
<div data-montage-id="main">
<div data-montage-id="table">
<div data-montage-id="text"></div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/montage-serialization">
{
":row": {
"alias": "@rows:iteration"
},
":column": {
"alias": "@columns:iteration"
},
"owner": {
"properties": {
"element": {"#": "table"}
}
},
"rows": {
"prototype": "montage/ui/repetition.reel",
"properties": {
"element": {"#": "rows"},
"content": [
1,
2,
3
]
}
},
"columns": {
"prototype": "montage/ui/repetition.reel",
"properties": {
"element": {"#": "columns"},
"content": [
1,
2,
3
]
}
}
}
</script>
</head>
<body>
<div data-montage-id="table">
<div data-montage-id="rows">
<div data-montage-id="columns">
<div data-param="*"></div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment