Permalink
Browse files

YUI app - convert to tabs

  • Loading branch information...
1 parent ad2e4a0 commit 6828eaacd3a8d28f6eb355d1e1556c73456cb043 @sindresorhus sindresorhus committed Nov 13, 2012
Showing with 32 additions and 34 deletions.
  1. +32 −34 architecture-examples/yui/index.html
@@ -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>

0 comments on commit 6828eaa

Please sign in to comment.