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

YUI app - convert to tabs

parent ad2e4a07
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
</p> </p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p> <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer> </footer>
<script type="text/x-handlebars-template" id="item-template"> <script type="text/x-handlebars-template" id="item-template">
<div class="view"> <div class="view">
<input class="toggle" type="checkbox" {{#if completed}} checked="checked" {{/if}} /> <input class="toggle" type="checkbox" {{#if completed}} checked="checked" {{/if}} />
...@@ -35,7 +34,6 @@ ...@@ -35,7 +34,6 @@
</div> </div>
<input class="edit" type="text" value="{{title}}" /> <input class="edit" type="text" value="{{title}}" />
</script> </script>
<script type="text/x-handlebars-template" id="stats-template"> <script type="text/x-handlebars-template" id="stats-template">
<span id="todo-count"><strong>{{remaining}}</strong> {{pluralize remaining "item"}} left</span> <span id="todo-count"><strong>{{remaining}}</strong> {{pluralize remaining "item"}} left</span>
<ul id="filters"> <ul id="filters">
...@@ -53,37 +51,37 @@ ...@@ -53,37 +51,37 @@
<button id="clear-completed">Clear completed ({{completed}})</button> <button id="clear-completed">Clear completed ({{completed}})</button>
{{/if}} {{/if}}
</script> </script>
<script src="http://yui.yahooapis.com/3.6.0pr4/build/yui/yui-min.js"></script> <script src="http://yui.yahooapis.com/3.6.0pr4/build/yui/yui-min.js"></script>
<script> <script>
YUI({ YUI({
filter: 'raw', filter: 'raw',
allowRollup: 'false', allowRollup: 'false',
groups: { groups: {
'todo-mvc': { 'todo-mvc': {
base: './js/', base: './js/',
modules: { modules: {
'todo': { 'todo': {
path: 'models/todo.js', path: 'models/todo.js',
requires: ['gallery-model-sync-local', 'model'] requires: ['gallery-model-sync-local', 'model']
}, },
'todo-list': { 'todo-list': {
path: 'models/todolist.js', path: 'models/todolist.js',
requires: ['gallery-model-sync-local', 'model-list', 'todo'] requires: ['gallery-model-sync-local', 'model-list', 'todo']
}, },
'todo-view': { 'todo-view': {
path: 'views/todoview.js', path: 'views/todoview.js',
requires: ['view', 'handlebars'] requires: ['view', 'handlebars']
}, },
'todo-app': { 'todo-app': {
path: 'app.js', path: 'app.js',
requires: ['app', 'todo-list', 'todo-view'] requires: ['app', 'todo-list', 'todo-view']
} }
} }
} }
} }
}).use('todo-app', function (Y) { }).use('todo-app', function (Y) {
var app = new Y.TodoMVC.TodoApp(); var app = new Y.TodoMVC.TodoApp();
}); });
</script> </script>
</body> </body>
</html> </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