Commit 6828eaac authored by Sindre Sorhus's avatar Sindre Sorhus

YUI app - convert to tabs

parent ad2e4a07
......@@ -26,7 +26,6 @@
</p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<script type="text/x-handlebars-template" id="item-template">
<div class="view">
<input class="toggle" type="checkbox" {{#if completed}} checked="checked" {{/if}} />
......@@ -35,7 +34,6 @@
</div>
<input class="edit" type="text" value="{{title}}" />
</script>
<script type="text/x-handlebars-template" id="stats-template">
<span id="todo-count"><strong>{{remaining}}</strong> {{pluralize remaining "item"}} left</span>
<ul id="filters">
......@@ -53,37 +51,37 @@
<button id="clear-completed">Clear completed ({{completed}})</button>
{{/if}}
</script>
<script src="http://yui.yahooapis.com/3.6.0pr4/build/yui/yui-min.js"></script>
<script>
YUI({
filter: 'raw',
allowRollup: 'false',
groups: {
'todo-mvc': {
base: './js/',
modules: {
'todo': {
path: 'models/todo.js',
requires: ['gallery-model-sync-local', 'model']
},
'todo-list': {
path: 'models/todolist.js',
requires: ['gallery-model-sync-local', 'model-list', 'todo']
},
'todo-view': {
path: 'views/todoview.js',
requires: ['view', 'handlebars']
},
'todo-app': {
path: 'app.js',
requires: ['app', 'todo-list', 'todo-view']
}
}
}
}
}).use('todo-app', function (Y) {
var app = new Y.TodoMVC.TodoApp();
});
</script>
<script src="http://yui.yahooapis.com/3.6.0pr4/build/yui/yui-min.js"></script>
<script>
YUI({
filter: 'raw',
allowRollup: 'false',
groups: {
'todo-mvc': {
base: './js/',
modules: {
'todo': {
path: 'models/todo.js',
requires: ['gallery-model-sync-local', 'model']
},
'todo-list': {
path: 'models/todolist.js',
requires: ['gallery-model-sync-local', 'model-list', 'todo']
},
'todo-view': {
path: 'views/todoview.js',
requires: ['view', 'handlebars']
},
'todo-app': {
path: 'app.js',
requires: ['app', 'todo-list', 'todo-view']
}
}
}
}
}).use('todo-app', function (Y) {
var app = new Y.TodoMVC.TodoApp();
});
</script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment